Creating master templates
To create a master template:
- Navigate to DX8 > Templates > Master templates
- A Master template is provided by default
- Click on the Create button
- Edit the name of your Master template If you want to give it a more descriptive name.
- Click on the +button on the Layout canvas
- Within the Sidebar browser locate the Region element and drag it onto the Layout canvas
- Double click on the Region element to edit its settings
- Within the Theme drop-down field, select DX8 minimal theme
- In the Region drop-down, select the Content region
- Click Apply
- This will add the Drupal content region to your Master template. This is required on your Master template as your Content templates and content render within the Content region. For more information see Adding Drupal regions to your master template
- Layout the rest of your master template using the other elements provided by the Layout builder. For more information see Using the layout builder.
- Preview your Master template. Click on the Preview icon in the top right of the Layout canvas. For more information, see Using the Layout canvas preview
Your master template must include the Region element, configured to render the Drupal content region.
When making changes to your master template you may also need to clear your Drupal cache to see your changes.
Using your master template
You use your Master template by selecting it when you create your DX8 Content templates or View templates. You do not apply your Master template directly from within the Master template user interface.
To apply your Master template:
- Navigate to a Templates > Content templates > Content > Create or edit a Full content template
- Within the Details area, click on the Master template drop-down and select your Master template
- Click Save and continue