A graphic charter has one or more templates. Any page containing information is necessarily associated with a template. It is this template that displays the different parts of a page.
A template consists of :
In the example opposite, the different parts of the template are fed in 3 different ways:
For more details on how to create a page, please refer to the user manual, page Create a page.
Defining a template in Ametys involves :
To find out more about creating a template, see Writing a template .
Content or services can be inherited from a parent page to its children. This parameter is specified in the definition of template zones (see template file.xml).
Template assignment rules can be defined to restrict their use. For example, a template designed specifically for the home page can only be assigned to a page whoseURL is /index.html. This restriction is managed by the template_assignment file .xml.
Each template can have variations in style while retaining a similar layout.
Each template can have from 0 to n display zones. Some zones are supplied with content types and/or services made available to the contributor. It is possible to restrict the types of content and services available by display zone and template. To find out more about restricting content and services by zone, see Template configuration.
Some dynamic data are accessible via the template used. These can be used to build parts common to all pages, notably the breadcrumb trail; or to define page or content filters via a set of labels.
For more information, visit the Input Data page.