Adding Blog Entries

Blog entries are scoped to sites. By default, only authenticated users can create blog entries. See the Blogs Permissions Reference for more information.

You can create a blog entry and display it on a page.

Tip

Using a Blogs widget is one of the easiest ways to display blog entries on a page.

Creating an Entry

  1. Open the Site Menu (Product Menu) and navigate to Content & DataBlogs.

  2. Under the Entries tab, click Add (Add icon) to add a new blog entry.

    Blog entry form editor

  3. Drag and drop or select a file to upload as an optional cover image for the entry. By default, this cover image is published as part of the blog entry’s abstract.

  4. Enter a title for the blog entry.

  5. Enter an optional subtitle for the entry.

  6. Enter the entry’s content in the Content field. To learn more about the different text editing features, see Blog Entry Editor Reference.

Categorizing Blog Entries

You can help users find content on your site by categorizing blog entries.

Use categories (public and internal), tags, or relate the entry to an asset to categorize the blog entry. See Defining Categories and Vocabularies for Content to learn more about categories and vocabulary and Tagging Content and Managing Tags to learn more about using tags.

To categorize an entry using categories and tags,

  1. Expand the Categorization section.

  2. Click Select to choose existing public/internal categories or tags.

    Alternatively, create a new tag by entering the tag name in the Tags field and pressing Return.

To relate an asset to the entry,

  1. Expand the Related Assets section and click Select

  2. Select an asset and link it to the entry.

Customizing the Blog Entry’s Friendly URL

Liferay DXP 2024.Q2+/Portal 7.4 GA120+ Beta Feature

Important

Currently, this feature is behind a beta feature flag (LPD-11147). Read Beta Feature Flags for more information.

  1. Expand the Friendly URL section and select Use a Customized URL.

    Note

    If you select Use the Default URL and there’s a pre-existing entry with the same title, a numerical suffix is appended to the URL upon publication to ensure its uniqueness.

    For instance, if the URL is exploring-the-enigmatic-world-of-axolotls and it’s already in use, the new entry’s URL will be adjusted automatically to exploring-the-enigmatic-world-of-axolotls-1 when published.

    Read Configuring Friendly URL Separators to learn how to further configure the URL.

  2. To add categories to the URL, click Select under Add Categories to URL. In the dialog, select the categories you want to add to the URL.

    A URL preview appears under Friendly URL.

    After selecting categories and customizing the URL, check its preview under Friendly URL.

  3. To customize the friendly URL manually, edit it under Friendly URL.

    Warning

    You can’t add categories and manually include other elements to the friendly URL using slashes (/) at the same time.

    For example, if you attempt to include both the Appliances and the Supplies categories along with custom elements like /home/kitchen/blog-entry-title in the Friendly URL field, an error appears: The URL title cannot contain slashes and categories.

    In case of a conflict between URLs, the one using slashes has precedent over the one with categories.

  4. Continue configuring the blog entry, publish it, or save it as draft.

Once the blog entry is published, you can display it using a display page template, and the URL includes the selected categories.

Once you publish the blog entry, the categories are added to the URL.

When customizing friendly URLs, keep these points in mind:

  • If you change the name of a category, the URL is updated automatically.

    While editing a category that is being used in a friendly URL, a message appears: Changes made to the category will impact the associated friendly URL.

  • If you delete a category, it’s removed automatically from the URL.

    While deleting the category, a confirmation message warns you that the friendly URL may be affected in the process.

  • Categories are displayed in the order they were created.

  • When a category used in a custom URL has translations available in different languages, those translations are applied to the categories in the URL when the target language is selected.
Note

When you update an entry’s friendly URL, Liferay stores the previous value in the entry’s friendly URL history. As long as the old URL remains in the history, Liferay redirects users to the latest version of the blog entry, and you cannot use it for other blog entries in the same site. See Managing the Friendly URL History to learn more about managing the friendly URL history for blog entries.

Configuring How the Entry is Displayed

To configure the blog entry and how it is displayed, expand the Configuration and the Display Page sections and adjust the following settings,

Configuration Description
Abstract Specify the entry’s abstract. By default, the Blogs application uses the first 400 words. Custom Abstract prompts for a manual description.
Small Image Add a small image to be shown as the entry’s thumbnail.
Display Date Configure the display date to be used for the entry.
Send Email Entry Updated Send comments about the entry update.
Allow Pingbacks When you include a link to another website’s content in your post, and if that website supports pingbacks, it receives a notification or “ping” from your site. Pingbacks use XML-RPC requests to the URL you linked.
Display Page Template Select the default display page template, a specific one, or no display page template to display your blog entry.

When creating a blog entry, use the Configuration panel to control when and where the blog entry appears, and what to use for the entry's abstract.

Publishing the Blog Entry

After you finish editing, categorizing, and configuring your blog entry, click Publish to publish it.

Fellow site members can add comments, rate the entry, or share it on other social media sites.

The Blog Entry has been published.

Ask

Capabilities

Product

DXP

Contact Us

Connect

Powered by Liferay
© 2024 Liferay Inc. All Rights Reserved • Privacy Policy