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

content_view_gui

Drawing a content object (without a node) in a view mode with content_view_gui: when you have an object rather than a node (relations, embeds, search hits), the content/view templates, and the override keys it sets.

Download as PDF

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

On this page

content_view_gui

This page is for designers who draw objects that come without a node: related objects, objects in relation fields, embedded objects. {content_view_gui} is the object counterpart of node_view_gui.

Contents

  1. Use
  2. Templates
  3. Override keys
  4. Node or object?

Use

{foreach $node.object.related_contentobject_array as $related}
    {content_view_gui content_object=$related view='text_linked'}
{/foreach}

content_object is the object, view the view mode. The template receives the object as $object.

Templates

content/view/<view>.tpl, through the design cascade. The kernel's design/standard/templates/content/view/ has embed.tpl, embed-inline.tpl, full.tpl, line.tpl, plain.tpl, text.tpl, text_linked.tpl, tiny.tpl and a few more for the administration.

Override keys

From the function's definition in kernel/common/eztemplateautoload.php: object, class, class_identifier, class_group, section, remote_id, state, state_identifier. An override with Source=content/view/embed.tpl and Match[class_identifier]=image gives images their own embed template.

Node or object?

If you have a node, use node_view_gui: it knows the node's place (URL, parent) and its overrides can match on the parent and depth. From an object, $object.main_node gives its main node when it has one.

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