A page template is a reusable, full-page layout that surrounds the content of your pages in Drupal Canvas. A page template usually contains your site header, navigation, and footer, and a placeholder that marks where the content of each page displays.
Page templates replace global regions. Instead of one header and footer that every page shares, you can create several page templates and select which page template each page or content template uses.
Users with the Administer page template permission can create, edit, rename, duplicate, and delete page templates, set the site default, and select page templates for content types. Users without this permission do not see the Templates panel. Users who can edit a page can select a page template for that page without this permission. For more information, visit Managing roles and permissions.
Page templates follow these rules:
The following table lists the parts of a page in Drupal Canvas:
S.No | Term | Description |
|---|---|---|
1 | Page template | The full-page layout around page content, such as the header, navigation, and footer. |
2 | Page content placeholder | The position in a page template where the content of each page displays. Drupal Canvas adds the placeholder to every page template automatically. You cannot remove the placeholder or add a second one. |
3 | Page | A single page that can include multiple components and a predefined set of structured fields, such as title, meta description, and meta image. |
4 | Components | Individual content elements placed within pages and page templates. |
You can use page templates for the following scenarios:
Source CMS manages site header and footer regions through a default page template to preserve consistent page presentation
GitHub sync includes page templates. When you publish a page template in Drupal Canvas, the system commits the page template to your connected repository. Changes to page templates that you push to the repository synchronize back to your site. The Drupal Canvas CLI pull and push commands also synchronize page templates.
S.No | Term | Description |
|---|---|---|
1 | Page template | The full-page layout around page content, such as the header, navigation, and footer. |
2 | Page content placeholder | The position in a page template where the content of each page displays. Drupal Canvas adds the placeholder to every page template automatically. You cannot remove the placeholder or add a second one. |
3 | Page | A single page that can include multiple components and a predefined set of structured fields, such as title, meta description, and meta image. |
4 | Components | Individual content elements placed within pages and page templates. |
You can use page templates for the following scenarios:
Source CMS manages site header and footer regions through a default page template to preserve consistent page presentation
GitHub sync includes page templates. When you publish a page template in Drupal Canvas, the system commits the page template to your connected repository. Changes to page templates that you push to the repository synchronize back to your site. The Drupal Canvas CLI pull and push commands also synchronize page templates.
If this content did not answer your questions, try searching or contacting our support team for further assistance.
If this content did not answer your questions, try searching or contacting our support team for further assistance.