User Guide: Page Templates - AdaptiveAds/AdaptiveAds GitHub Wiki

User Guide: Page Templates

This document outlines how to create, edit, delete and apply a page template. Refers to the Adaptive Adverts system as from here on.

Overview

A page template is a template assigned to an individual page of an advert. A number of templates are available by default. These change the location/position of the images and text displayed on the page. For example, you may want to display only an image in that case. A full screen advert template would be appropriate.

Create

In order to create a new page template, the ‘_advertTemplateLayouts.scss’ file needs to be edited. This file contains the definitions of each template and is located in ‘/resources/assets/sass/backend/adverts/advertTemplates’.

  1. Define a new template class within the ‘_advertTemplateLayouts.scss’, take note of the new template class name.
  2. Navigate to the ‘Page Templates’ page on the AA system.
  3. Click on the add button on the page, to open the create modal.
  4. Fill in the fields show in figure 2.
  5. Click save when complete.

Updating

  1. Navigate to the ‘Page Templates’ page, see figure 1.
  2. Find the template you wish to edit, and click the edit button to show the edit modal.
  3. Update the required fields
  4. Click save.

Note: Not supplying a new thumbnail will not overwrite the original.

Deleting

  1. Navigate to the ‘Page Templates’ page, see figure 1.
  2. Find the required template.
  3. Click the delete button
  4. Confirm you want to delete the selected template.

Note: The template must not be in use by a page to be deleted.

Filtering

  1. Navigate to the ‘Page Templates’ page, see figure 1.
  2. Enter a search value in one or more inputs on the page.
  3. Click filter to apply the filter.
  4. Click clear filter to remove the filter, when it is no longer required  

Assign

To assign a page template follow these steps.

  1. Navigate to the ‘page editor’
  2. Using the provided templates selector, choose the desired template to match the contents needs.