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

Module result and content info

What $module_result holds after a view has run (content, path, title_path, uri, content_info, view_parameters, errorType and errorNumber) and how the pagelayout uses content_info to know the class, node, section, view…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/designers/templates/module-result-and-content-info.md

On this page

Module result and content info

This page is for designers who write pagelayouts and their parts. $module_result is everything the module view reports about the page it produced. The full list of keys is on Pagelayout variables; this page shows how to use them.

Contents

  1. Content pages and other pages
  2. Facts without fetching
  3. The path
  4. Error pages

Content pages and other pages

content_info exists only when the view is a content view. On search, user, error and other module pages it is not an array. Always guard:

{def $ci = cond( is_array( $module_result.content_info ), $module_result.content_info, false() )}

Facts without fetching

NeedRead
the class of the page$ci.class_identifier
the node, its parent, its depth$ci.node_id, $ci.parent_node_id, $ci.node_depth
the view mode$ci.viewmode (the media design checks for payload and layout_preview)
the section$ci.section_id, $ci.section_identifier
the URL alias and the canonical one$ci.url_alias, $ci.main_node_url_alias
the language shown$ci.current_language
the page offset$ci.offset
what the view handed over$ci.persistent_variable (The persistent variable)

Each is free: no database query.

The path

$module_result.path is a list of hashes (text, url, url_alias, node_id), from the top of the tree to the current page, whose last entry has url false. Content views fill it from the node's path; other modules set their own (for example "Search"). title_path is the same for the <title>. Breadcrumbs and titles are built from it (Breadcrumbs).

Error pages

When a view fails (no access, not found), the kernel renders an error template and $module_result carries errorType (for example kernel) and errorNumber. The media design's pagelayout/head/title.tpl uses them to give error pages a readable title (Error templates).

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