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’.
- Define a new template class within the ‘_advertTemplateLayouts.scss’, take note of the new template class name.
- Navigate to the ‘Page Templates’ page on the AA system.
- Click on the add button on the page, to open the create modal.
- Fill in the fields show in figure 2.
- Click save when complete.
Updating
- Navigate to the ‘Page Templates’ page, see figure 1.
- Find the template you wish to edit, and click the edit button to show the edit modal.
- Update the required fields
- Click save.
Note: Not supplying a new thumbnail will not overwrite the original.
Deleting
- Navigate to the ‘Page Templates’ page, see figure 1.
- Find the required template.
- Click the delete button
- Confirm you want to delete the selected template.
Note: The template must not be in use by a page to be deleted.
Filtering
- Navigate to the ‘Page Templates’ page, see figure 1.
- Enter a search value in one or more inputs on the page.
- Click filter to apply the filter.
- Click clear filter to remove the filter, when it is no longer required
Assign
To assign a page template follow these steps.
- Navigate to the ‘page editor’
- Using the provided templates selector, choose the desired template to match the contents needs.