Configuring Page Sets
For Liferay 7.4 U22+ and GA22+, private pages are disabled for new installations. They are also deprecated as of Liferay 2024.Q4+ and are scheduled for removal in a future release. However, you can still enable them if desired.
When private pages are enabled, site pages are divided into public and private page sets. These sets group pages so you can apply bulk configurations to each type of page. Settings configured for a page set apply to all grouped pages and override configurations at the site level. Page set configurations are overridden by customizations to individual pages.
If private pages are disabled for your Liferay system, follow these steps to access bulk configuration options for your pages:
-
Open the Site Menu (), expand Site Builder, and click Pages.
-
Click the Actions button () in the Application Bar and select Configuration.
If Private Pages are enabled for your Liferay system, follow these steps to access Page Set configuration options:
-
Open the Site Menu (), expand Site Builder, and click Pages.
-
Click the Gear icon () for either Public Pages or Private Pages.
Configuring the Page Set’s Look and Feel
In the Look and Feel tab, you can customize the Page Set’s theme and logo settings.
Look and Feel
Themes create the overall feel for the site and can transform the look entirely. The Current Theme section displays the theme currently applied to the page set, along with any configurable theme settings and color schemes that the theme has. Many themes include more than one color scheme, which keeps the existing look and feel while giving the Site a different flavor.
To change the current theme,
-
Click the Change Current Theme button and select the Theme from the window that appears.
-
Select your desired theme.
-
Click Save to apply the new theme to the page set.
You can enter custom CSS in the CSS section for modifying your theme. You can apply themes to the entire site (described here) or to individual pages (described in Configuring Pages).
Logo
By default, the Liferay logo is used for your site’s pages. To use your own logo for a site,
-
Expand the Logo section.
-
Click the Change button.
-
Browse to the location of your logo. Make sure your logo fits the space in the top left corner of the theme you’re using for your site. If you don’t, your other page elements are pushed aside to make way for the logo.
-
Choose whether to display the site name on the site. When Show Site Name is enabled, the site name appears next to the logo.
NoteThis option is enabled by default and can’t be disabled if the Allow Site Administrators to set their own logo option is disabled in Instance Settings. Removing the site name is not available for the default Liferay site—you can configure this only for new sites and user pages.
-
Click Save.
The site’s logo settings are now configured.
Configuring the Page Set’s Advanced Settings
The Advanced tab contains several options that can impact the site and overall performance. Administrators should proceed with caution.
JavaScript
In the JavaScript tab, you can paste JavaScript in the JavaScript editor. Code entered here is executed at the bottom of every page in the site. Your site’s JavaScript is most likely (and should be) included with the theme. However, this may be a good place to quickly test JavaScript code while not in production.
Advanced Settings
If you have multiple sites, one is marked as the Default Site that visitors see when they visit your domain name. By default, only the default site’s public pages appear in the navigation.
You can display another site’s public pages in the default site’s navigation by enabling the Merge public pages option for that site.
Adding too many pages to the main navigation can make it become unwieldy very quickly.
-
Check the Merge Liferay DXP public pages box.
-
Click Save when finished.
Mobile Device Rules
You can add Mobile Device Rules to configure behaviors for specific mobile devices or types for the page set. Mobile device rules are inherited from your public pages, but you can define specific rules per page. You can edit the look and feel of specific pages for mobile devices, including the theme. See Mobile Device Rules for more information.
Robots
Here you can configure search and indexing rules in the robots.txt
rules for the domain’s public and private pages. The robots.txt
file provides instructions to search engines and other tools that are automatically crawling and indexing your site. For example, you can specify not to index certain pages.
Sitemap
This generates a sitemap you can send to some search engines so they can crawl your site. It uses the industry standard sitemap protocol. Select a search engine link to send the sitemap to it (only required once per site), or select the preview link to see the generated XML that is sent to search engines.
Using the Page Tree Menu
In Liferay DXP 7.3, you can access the same settings from the Page Tree menu:
-
Open the Site Menu () and click Page Tree ().
-
Select Public Pages or Private Pages from the dropdown menu.
-
Click the Gear () icon.