Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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 in the Varbase: Content Designers Course.

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.

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.

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.

The Vartheme BS5 theme settings with the Drupal Canvas group open and Use Drupal Canvas for page templates in this theme switched on
Drupal Canvas Page Templates Switched On in the Theme

To add a call to action to every page, see Add a Button to the Header.

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.

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
The Templates Panel: Content Templates per Content Type, and Page Templates

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.

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
A Blog Post Laid Out by Its Full Content Template

To change every post at once, see Show Tags at the End of Every Post.

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

Last updated