Creating a Master Page Template¶
Available: Liferay DXP/Portal 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:
Open Product Menu and go to Site → Design → Page Templates.
Under the Masters tab, click Add ( to create a new Master Page Template.
Enter the Name of your new Master Page Template.
Click Fragments and Widgets () on the sidebar and add Fragments for the common elements that you require.
Optionally 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.
Optionally 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.
Click Save to close the Allowed Fragments dialog.
To preview your Content Page, click the Preview button ().
Click Publish Master to create the Master Page Template.
You can revert any action using the Undo () or Redo () buttons, or you can return to a previous version of your edits using the History () button.
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.