Creating master templates
To create a master template:
- Navigate to Acquia Cohesion > 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 Acquia Cohesion 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.
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 Acquia Cohesion 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