Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

View modes

The view modes content is shown in (full, line, embed, embed-inline and others), where each is used, the node/view and content/view templates behind them, which modes are view-cached, how the URL chooses one, and how…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/designers/templates/view-modes.md

On this page

View modes

This page is for designers who plan the templates of a design. The same article appears as a whole page, as an item in a list, as a teaser in a block, as an embed in another text. Each of these is a view mode, and each has its own template.

The View tab of an article in the administration, its full view drawn by the administration design's templates
The View tab of an article in the administration, its full view drawn by the administration design's templates

Contents

  1. The common view modes
  2. How a view mode is chosen
  3. Templates behind a view mode
  4. Caching
  5. Planning the view modes of a design

The common view modes

ModeUsed forTemplate
fullthe page of the content itselfnode/view/full.tpl (Full view)
linean item in a listnode/view/line.tpl (Line view)
embedcontent embedded as a block in rich textcontent/view/embed.tpl, node/view/embed.tpl (Embed view)
embed-inlinecontent embedded inside a line of textembed-inline.tpl (Embed inline view)
text_linked, text, tiny, plainshort forms in lists, relations and the administrationnode/view/ and content/view/
listitem, thumb, sitemap, print, pdfother shipped modes in design/standard/templates/node/view/

Designs add their own (the media design has card-like modes and payload; see Custom view modes).

How a view mode is chosen

  • The URL: /content/view/<mode>/<node id>; a URL alias opens the full mode.
  • Templates: {node_view_gui content_node=$child view='line'} and {content_view_gui ... view='embed'}.
  • Rich text embeds: the editor's choice of view (embed, embed-inline), limited by content.ini [embed] AvailableViewModes[] for the online editor.
  • Layout blocks: block templates choose a view mode for their items.

Templates behind a view mode

node/view/<mode>.tpl is the default for all classes; overrides give classes their own template for a mode, matched on Source=node/view/<mode>.tpl (Node templates by class). A mode without a node/view/<mode>.tpl anywhere in the cascade fails: ship a default template for every custom mode.

Caching

site.ini [ContentSettings] CachedViewModes=full;sitemap;pdf: these modes, opened as pages, are stored in the view cache. Modes drawn inside other templates (line, embed) are part of the page that draws them and cached with it.

Planning the view modes of a design

  1. List the places content appears: page, list, card grid, search result, related items, embed, layout blocks.
  2. Map each to a view mode; reuse line and embed before inventing new ones.
  3. For each content class that needs a special look in a mode, plan an override.
  4. Write the default template of every mode first, then the class overrides.

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x