The Inline Template Root
The template root name inline
is reserved for a
special purpose. It can be used to provide a special set of
article
templates that are used for in-line
loading of content. In-line loading means that when the user clicks
on a teaser link on a section page, the content item is loaded
directly into the current page instead of being displayed on a new
page.
This on-line loading behavior can be configured in the
Link settings of Teaser
and
Teaser view
widgets. When a content item is
loaded in this way, its layout is determined by the content of the
appropriate config.inline.article
template rather
than a config.default.article
template.
Inline templates are only ever selected for content items, so there
is no point including section
templates under the
inline
template root.
Inline templates are selected in exactly the same way as default
templates. If, for example you want a special
inline
template to be used for your
Story
content items, then you can achieve this by
defining the following inline
template hierarchy:
config
config.inline
config.inline.article
config.inline.article.type.story