> For the complete documentation index, see [llms.txt](https://docs.varbase.vardot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.varbase.vardot.com/content-designers/building-pages-with-drupal-canvas/templates-and-page-types.md).

# Page Types and Templates

Building one page is the start. This page is about consistency across hundreds of pages: the common page types most clients need, built with one repeatable method; the header and footer every page shares; and content templates, which lay out every blog post and every card without anyone building them one by one.

Watch the lesson: [Drupal Canvas: Templates and Page Types](https://docs.varbase.vardot.com/content-designers/varbase-content-designers-course/lesson-09-drupal-canvas-part-2.md) in the [Varbase: Content Designers Course](https://docs.varbase.vardot.com/content-designers/varbase-content-designers-course.md).

## Why It Matters

* One design change reaches every blog post, card and search result at once.
* Header and footer changes, such as a new button or a campaign banner, do not need a release.
* A labelled list of page types is one of the clearest scope documents you can give a team.

## The Repeatable Method

However different pages look, they are built the same way:

1. Add a **Section**, a full-width band of the page.
2. Split it into one to four columns.
3. Drop components into the columns: headings, text, images, cards, buttons.
4. Repeat for each part of the story, then publish.

Patterns are sections where this work is already done. See the [Component Catalog](https://docs.varbase.vardot.com/content-designers/building-pages-with-drupal-canvas/component-catalog.md).

## Common Page Types

| Page                             | Shape                                                                         | Components                                                       |
| -------------------------------- | ----------------------------------------------------------------------------- | ---------------------------------------------------------------- |
| **Services**                     | Banner, three services, call to action                                        | **Media banner**, three **Card Icon**, **Hero CTA**              |
| **Products or plans**            | Banner, one card per plan, highlight the most popular                         | **Pricing card** in a three or four column section               |
| **Event**                        | Hero with date and register button, date and place, agenda, registration form | **Hero Card**, **Text**, **Accordion**, **Webform**              |
| **Campaign landing page**        | Strong hero and one action, benefits, proof, the same action again            | **Hero side by side**, cards, **Testimonial card**, **Hero CTA** |
| **About**                        | Banner, story in sections with images, numbers                                | **Featured Card**, **Counters** pattern                          |
| **Contact**                      | Form next to contact details                                                  | **Contact Form with Info** pattern                               |
| **Listing** (blog, news, events) | Banner and a live list with filters                                           | **Blog: All blog posts** and its filter                          |
| **Search**                       | Search box, results and filters                                               | The search live components                                       |

On a contact page, Canvas decides where the form sits; **Webform** decides what it asks. On listing and search pages, the list fills from content, so nobody edits the page when new content arrives.

If a client runs many events, ask whether events should be content (the **Varbase Events Base** recipe) rather than one Canvas page each.

To build a series of similar pages, see [Launch a Series of Campaign Pages](https://docs.varbase.vardot.com/content-designers/building-pages-with-drupal-canvas/templates-and-page-types/launch-a-series-of-campaign-pages.md).

## The Header and Footer: the Page Template

The header and footer live in a **page template**, separate from the content of any one page. A change shows on every page that uses the template, which makes it powerful and also the place where a careless change has the widest effect.

* **Turned on in the theme.** **Use Drupal Canvas for page templates in this theme** is on by default in **Vartheme BS5**, and its page template is the default.
* **Who may edit.** The **Administer page template** permission, held by **Site Admin** and **Super Admin** by default. Give it to one or two trusted people.
* **Menus are edited elsewhere.** The menu component in the header shows a menu but does not hold its links. Adding a page to the main menu is a menu task and needs no page template permission.

<figure><img src="https://410909369-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzBcuWLZ87gvtX5vA2YGD%2Fuploads%2Fgit-blob-edb1967082324e1177b1d52da9d124a5b2fe5790%2Flearn-09-theme-canvas-page-templates-setting.png?alt=media" alt="The Vartheme BS5 theme settings with the Drupal Canvas group open and Use Drupal Canvas for page templates in this theme switched on"><figcaption><p>Drupal Canvas Page Templates Switched On in the Theme</p></figcaption></figure>

To add a call to action to every page, see [Add a Button to the Header](https://docs.varbase.vardot.com/content-designers/building-pages-with-drupal-canvas/templates-and-page-types/add-a-button-to-the-header.md).

## Content Templates

A **content template** is a Drupal Canvas layout for every item of a content type in one of its views: the full page, cards in several sizes, a hero card, a search result. A Varbase Starter site has about twenty templates for **Blog post**. Change the full template and every post changes, including old ones; change a card template and every list using that card changes.

<figure><img src="https://410909369-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzBcuWLZ87gvtX5vA2YGD%2Fuploads%2Fgit-blob-c6409ff2ed534f72f15919d9abf7b742ada6b093%2Flearn-09-templates-panel.png?alt=media" alt="The Templates panel in the Drupal Canvas editor listing content templates for Blog post, such as Card template, Featured card, Full content template, Hero card template and Search result template, and Page templates below"><figcaption><p>The Templates Panel: Content Templates per Content Type, and Page Templates</p></figcaption></figure>

In a template, components are connected to the post's fields: the heading shows the title, the image shows the featured image, the text shows the content. The editor arranges; the fields supply the words and pictures. One template serves every language, and Arabic flips right to left by itself.

<figure><img src="https://410909369-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzBcuWLZ87gvtX5vA2YGD%2Fuploads%2Fgit-blob-b829bb980946ced0ed3ad3019064f8b3f073aa01%2Flearn-09-post-from-full-content-template.png?alt=media" alt="A blog post on the site laid out by its full content template: breadcrumbs, the title Case Studies: Successful Websites Powered By Varbase, the date and the featured image"><figcaption><p>A Blog Post Laid Out by Its Full Content Template</p></figcaption></figure>

To change every post at once, see [Show Tags at the End of Every Post](https://docs.varbase.vardot.com/content-designers/building-pages-with-drupal-canvas/templates-and-page-types/show-tags-at-the-end-of-every-post.md).

## Planning Notes

* Label every page in the client's sitemap: built from existing patterns (editing work), listing pages (need their content type and list), or new patterns and components (design and development time).
* Plan who may edit templates: content templates need **Administer content templates** and the header and footer need **Administer page template**, both held by **Site Admin** and **Super Admin** by default.

## In This Section

* [Launch a Series of Campaign Pages](https://docs.varbase.vardot.com/content-designers/building-pages-with-drupal-canvas/templates-and-page-types/launch-a-series-of-campaign-pages.md)
* [Add a Button to the Header](https://docs.varbase.vardot.com/content-designers/building-pages-with-drupal-canvas/templates-and-page-types/add-a-button-to-the-header.md)
* [Show Tags at the End of Every Post](https://docs.varbase.vardot.com/content-designers/building-pages-with-drupal-canvas/templates-and-page-types/show-tags-at-the-end-of-every-post.md)
