Legacy Knowledge Base
Published Jun. 30, 2025

Using a Display Page Template for a Blog that has its own scope (page scope)

Written By

Sorin Pop

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • We have created a normal content page and we have added a blog widget to the page.

    That blog widget has its own scope. So any blog posts/content that has been created is stored in that scope.

    However, when a user clicks on a blog post title, the out of the box display page for blogs is not very nice. Therefore we would like to use a custom display page template. However, this does not seem to be possible when using a scoped blog.

    We can create a custom display page from the root level of the site, however it is not possible to apply this template to the blog that has its own scope. 

    Is there something we can do, so that we can use a custom display page on a blog that has its own scope? 

  • Reproduction steps:

    1. Create a Widget Page type page (Name it: “Test”)
      1. Add the Blogs Widget
      2. Navigate to the configuration of the Blogs Widget
      3. Navigate to the Scope tab
      4. Select the name of the page (“Test”) to create a new scope from the use of the drop-down combo box
    2. Create a Blogs Entry using the Blogs Widget
    3. Navigate to the Menu > Design > Page Templates
    4. Navigate to the Display Page Templates tab
    5. Click on the '+' button
      1. Select Blank
      2. Add the name "Blogs Display Page Template"
      3. Select Blogs Entry in “Content Type”
      4. Save changes
      5. Publish the Display Page Template
    6. Navigate to "Test" page
    7. Edit the Blog Entry
      1. Under "Display Page Template" section select "Specific Display Page Template"
      2. Press Select

    Actual behaviour: "Blogs Display Page Template" is not selectable

Environment

  • 7.4

Resolution

  • this behaviour is intended, and there is no solution in this sense.
     
  • When a widget is scoped to the page it cannot use resources at the level site, as the display page template is. Because the display page template could be using resources (mapping to other contents, for example) that are also out of the scope of the widget. In other words, currently, display page templates that are at the site scope, are not available for page-scoped widgets. 

 

 

 

Did this article resolve your issue ?

Legacy Knowledge Base