Publishing Content With Display Pages
You can use display page templates to create reusable dynamic designs for displaying content items at their friendly URLs. After designing the template, you can make it the default template for displaying its content type or manually configure only some of your content items to use it. Once set, users can view the content item’s display page by visiting its friendly URL. The content is rendered dynamically according to your template design and mappings. See Using Display Page Templates for more information.
Even though you can create multiple display page templates for the same content type, you can select only one default template. To use an alternative template as the default, you must assign the template to content items individually.
Setting a Default Display Page Template
-
Open the Site Menu () and click Design → Page Templates.
-
Click the Display Page Templates tab.
-
Click Actions () for the desired template and select Mark as Default
tipEach template’s content type is listed under its name (1). The blue check (2) indicates which templates are marked as default.
Setting a Display Page Template for Individual Content Items
-
Open the Site Menu () and go to the desired application (e.g., web content, blogs, categories).
-
Begin editing or creating a content item.
-
In the Properties tab, expand the Display Page Template section, click the drop-down menu, and select Specific.
noteIf you don’t choose a specific display page template, your content is published using the default one for the content type.
-
Click Preview, to preview what the display page looks like.
-
(Optional) In the Properties tab, expand the Friendly URL panel and modify the friendly URL. This determines the URL for displaying your content item using the display page template.
-
Click Publish.
Once set, Liferay uses the template to display the content item at its unique friendly URL. If desired, you can preview your content’s display page at any time by clicking the content’s Actions button () and selecting Preview or View Content
Preview displays the content in the display page template context, while View Content redirects you to the content item’s friendly URL.