Documentation

Configuring Page Sets

Important

For Liferay 7.4 U22+ and GA22+, Private Pages are disabled for new installations. However, you can enable them if desired. See Enabling Private Pages for more information.

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:

  1. Open the Site Menu (Site Menu), expand Site Builder, and click Pages.

  2. Click the Actions button (Actions Button) in the Application Bar and select Configuration.

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:

  1. Open the Site Menu (Site Menu), expand Site Builder, and click Pages.

  2. Click the Gear icon (Gear Button) for either Public Pages or Private Pages.

Click the Gear icon to access the Page Set's configuration Options.

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.

The Look and Feel interface allows you to choose a theme for the current site.

To change the current theme,

  1. Click the Change Current Theme button and select the Theme from the window that appears.

  2. Select your desired theme.

    Choose from one of the available themes.

  3. 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).

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.

The Advanced tab contains multiple options that enhances your Site.

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 Site is marked as the Default Site that visitors see when they visit your domain name. By default, only the default Site’s Public Pages are displayed 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.

Warning

Adding too many pages to the main navigation can make it become unwieldy very quickly.

  1. Check the Merge Liferay DXP public pages box.

    You can merge your Site's top level with the DXP Guest site.

  2. 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:

  1. Open the Site Menu (Site Menu) and click Page Tree (Page Tree).

  2. Select Public Pages or Private Pages from the dropdown menu.

  3. Click the Gear icon.

    You can access the same Page Sets options from the Page Tree menu.

Additional Information