Pages on Liferay DXP are primarily used to display content and applications to users of a Site.
When adding Pages to a site, the pages are created as part of a Site’s Page Set: Public Pages or Private Pages. Public and Private Page Sets are compared below:
|Behavior||Public Pages||Private Pages|
|Visible to unauthenticated users||✔|
|Viewing requires Login and Site Membership||✔|
|Distinct URL pattern||✔||✔|
There are several page types available when you add a page. The default page type is a Content Page. You can also create a page based on a Page Template. Page Types and Page Templates are described in more detail below.
The Page Type of the currently viewed page appears at the top of the page to help you determine the administration options you have and where you need to go to configure the page.
Content Pages enable users to build professional pages that can be easily managed and have their content edited in-line on the fly. Content Pages are primarily built using Page Fragments, but also allow widgets.
Using Content Pages allows access to additional powerful features and benefits:
Approachable Content and Site Building Experience
A Widget Page is a page with a set layout that allows widgets (applications) to be displayed. Widgets can display content or add interactive and dynamic functionality to the page. When you first start Liferay Portal, the starting home page is a Widget Page. See Adding Widgets to a Page for more information.
Content Pages and Widget Pages Compared¶
This table compares some of the distinctions between a Content Page and a Widget Page:
|Feature||Content Pages||Widget Pages|
|Ability to Add Widgets||✔||✔|
|Personalized Site Experiences||✔|
|Access to A/B Testing||✔|
|Easy Layout and Content Editing||✔|
|Advanced Custom Layouts||✔|
|Staging Page Variations||✔|
Global Page Templates¶
When adding a page, you also have the option to choose a Page Template. Page Templates are pre-set pages with applications already deployed to the page. By default, only Global Templates are available, but additional collections you create appear as an option as well.
|Global Page Template||Description|
|Blog||Creates a Widget Page with a Blogs widget, a Tag Cloud widget, and a Recent Bloggers widget.|
|Search||Creates a Widget Page with a Search Bar widget, a Search Results widget, and a Search Options widget.|
|Wiki||Creates a Widget Page with a Wiki widget, a Categories Navigation widget, and a Tags Navigation widget.|
Learn more about Page Templates:
Adding a Page Using a Page Template
Child Pages and Page Hierarchy¶
Pages can also be created in a hierarchical fashion by creating Child Pages. Child Pages can be useful if you have multiple pages that can be organized into categories.
You can navigate among pages of a Site hierarchy with the Site Map application. A Site Administrator can configure a root page and a display depth. The display depth of the Site Map application determines how many levels of nested pages to display.