oo

Creating a Master Page Template

Available: Liferay DXP/Portal 7.3+

Although there are default master page templates you can use to define the look and feel of the headers and footers for your site’s pages, you may want a more custom solution. You can create custom master page templates for this.

Follow these steps to create a master page templates:

  1. Open the Site Menu (Site Menu) and navigate to DesignPage Templates.

  2. Under the Masters tab, click Add (Add) to create a new Master Page Template.

  3. Enter the Name of your new master page template.

  4. In Fragments and Widgets (Fragments and Widgets) on the sidebar, add fragments for the common elements that you require.

    Add the master page template's common elements from the footers and navigation bars sections.

  5. (Optional) Drag and drop the Drop Zone to a new location in the layout. For example, you can add a grid with two modules and move the drop zone to one module, so users can only add page fragments to that portion of the grid.

    You can move the Drop Zone to control where users can add page fragments.

  6. (Optional) Specify which page fragments can be added to the Drop Zone by clicking the Configure Allowed Fragments button.

    Check the page fragments you want to allow in this master page template.

    Check the Select New Fragments Automatically box to include new fragment types in the list of allowed fragments.

    Check and uncheck fragments from the allowed fragments dialog to specify whether they can be added to a page that uses this master page template.

    Click Save to close the Allowed Fragments dialog.

  7. (Optional) To preview your content page, click Options (Options) at the top right corner → Preview in a New Tab.

  8. Click Publish Master to create the master page template.

You can revert any action using the Undo (Undo icon) or Redo (Redo icon) buttons, or you can return to a previous version of your edits using the History (History icon) button.

note

If a custom master page template is used for a page, the theme for the page is defined through the master page template and can’t be changed through the page’s settings. See Changing a Master Page Template’s Design for more information.

Managing Master Page Templates

Master Pages Templates

Capability: