A template is created in Jahia Studio to enable editors to use a view for rendering jnt:template
.
Templates define:
Changes made to templates in the Jahia Studio are immediately applied to the website and do not need to be published.
Content items can also be directly added to templates. This makes the content part of the template and cannot be changed in edit mode. Typical examples of content for this use case are page headers and footers.
Templates can only be created in Jahia using the development platform as Jahia Studio is not available on production environments.
A Page Template allows editors to:
Content positioning is accomplished with Content Areas in the Template Area.
While the template for a View is created using JSP, a page template is created directly in the Jahia Studio.
Under the template tab, right click the base of the template set and click "New page template"
An editing window provides different options:
In order to create a similar page structure without duplication, Jahia enables Template Inheritance.
A template child:
The Base Template is an abstract template and, as such, cannot be accessed in Edit Mode.
It serves as the page structure root for child templates.
Under the template tab, right click the base of the Template Set and select "New template"
An editing window provides different options:
An Absolute Area is a component that displays the same content on each page where it has been added.
Absolute areas are generally used to display the common parts of the template layout: main logo, header, footer, etc.
An example of Absolute Area in Jahia Studio
Level: This specifies the ancestor level
Limited editing from the main page
The absolute area is created using the same process as a general Area. As a reminder, an ancestor level must be specified and content contribution may be restricted to the main page.