Search in the Documentation:

There are 3 different kind of templates

First of all, you must note that there are three kinds of templates (remember that a template is always a node in the JCR)

  • Structure-template: is a template with a view (script) that must be loaded when this particular template is called. This template has a view because somehow we need to generate the HTML code of our pages, and load the external resources like CSS and Javascript files. By default when a new template-set is created there is always one template of this type (named “base”) created. Most web sites won’t have more than one template of this kind. A red icon symbolizes structure templates.
  • Page-template: page templates are templates that can be applied on nodes of the jnt:page type. Those jnt:page nodes correspond to custom pages manually created by editors in Edit Mode. When an editor creates a page, he must choose what template to use in the list of page-templates.
  • Content-templates: templates are used by Jahia to render in a full page a content node which is not a “page” object, for instance a news item, a press release, an event. All content types don’t need content-templates because most content types used in a web site are never called directly in full page. Think about the menu, a logo, a teaser, a poll, an ad… none of those content objects are likely to be called directly by a reader; they are always displayed as part of a bigger page.