Creating a Master Page Template

Available: Liferay DXP 7.3+

Although Portal includes default Master Page Templates that 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 Template:

  1. Open Product Menu and go to Site → Site BuilderPage Templates.

  2. Under the Masters tab, click the add button to create a new Master Page Template.

    Create a Master Page Template under the Masters tab.

  3. Add Page Fragments for the common elements that you require.

    Add the Master Page Template's common elements from the Footers and Navigation Bars sections.

  4. Optionally drag and drop the Drop Zone to a new location in the layout. For example, you can add a row with two columns and move the Drop Zone to one column, so users can only add Page Fragments to that portion of the page.

    You can move the Drop Zone to control where users can add Page Fragments.

  5. Optionally specify which Page Fragments can be added to the Drop Zone by clicking the Configure Allowed Fragments button. Check the boxes for the Page Fragments you want to allow. Check the box for Allow New Fragments to allow new Page Fragments to be added to the Drop Zone. click Save to apply the changes.

    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.

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

  7. To preview your Content Page, click the Preview button (Preview).

  8. Click Publish to create the Master Page Template.


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 Theme for more information.