Campaign App Templates

Each page within the campaign app has its own template to display that page's content.

Where to save template files

There are no app instances with the Campaign app so template files will go in a folder called campaign.

Below is an example folder structure:

  • themes
    • custom
      • theme.json
      • templates
        • home.twig
        • one-column.twig
        • two-column.twig
        • campaign
          • campaign.twig
          • campaigns.twig
          • categories.twig
          • category.twig
          • home.twig
          • subscribe.twig
          • unsubscribe.twig

App pages and their templates

Below is the list of campaign app pages and the name of the template file that you should create.

App home

The app home page often shows the campaigns that are configured to show in the archive and have been sent and/or categories.

Template name: home.twig

Campaign detail

This page shows the full details for an individual campaign that is configured to show in the archive and have been sent.

Template name: campaign.twig

Campaign list

This page shows a paginated list of campaigns that are configured to show in the archive and have been sent.

Template name: items.twig

Categories list

This page shows the list of categories.

Template name: categories.twig

Category detail

This page shows the detail information for an individual category. The items assigned to the category are often shown.

Template name: category.twig

Subscribe

The subscribe page is used to show the subscription form(s)

Template name: subscribe.twig

Unsubscribe

The unsubscribe page is used to show the results of a subscriber unsubscribing from one or more subscription lists.

Template name: unsubscribe.twig