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

Override match keys

Every Match key a content view override can use (class_identifier, class, node, object, parent_node, section, section_identifier, depth, url_alias, viewmode, remote ids, parent class, class group, state), what each…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/designers/templates/override-match-keys.md

On this page

Override match keys

This page is a reference for the conditions of override rules (Match[<key>]=<value>). The keys a full view sets are built in kernel/classes/eznodeviewfunctions.php; node_view_gui and content_view_gui set similar lists (see node_view_gui, content_view_gui).

Contents

  1. The keys
  2. Portable keys
  3. How values compare
  4. Combining keys

The keys

KeyComparesExample
class_identifierthe content class identifierMatch[class_identifier]=article
classthe class idMatch[class]=16
nodethe node idMatch[node]=2
objectthe object idMatch[object]=57
parent_nodethe parent node idMatch[parent_node]=61
sectionthe section idMatch[section]=6
section_identifierthe section identifierMatch[section_identifier]=news
depththe node's depthMatch[depth]=2
url_aliasthe start of the URL alias (prefix)Match[url_alias]=news
viewmodethe view mode (full views)Match[viewmode]=full
remote_idthe object's remote idMatch[remote_id]=cjw-starter-o-root
node_remote_idthe node's remote id
parent_node_remote_id, parent_object_remote_idthe parent's remote ids
parent_class, parent_class_identifierthe parent's classMatch[parent_class_identifier]=blog
class_groupa class group id the class belongs to
statean object state id the object has
state_identifieran object state identifier (<group>/<state>) the object has
navigation_part_identifierthe navigation part (mostly for the administration)
view_offsetthe paging offset of the viewMatch[view_offset]=0 (first page only)

Portable keys

Ids (node, object, class, section, parent_node) differ between installations: a design that uses them works only on the site it was made for. Prefer identifiers and remote ids: class_identifier, section_identifier, remote_id, node_remote_id, parent_class_identifier. The starter theme matches its root page by Match[remote_id]=cjw-starter-o-root for exactly this reason.

How values compare

  • A plain value must be equal.
  • When the page's value is a list (class_group, state), the rule matches if the list contains the value.
  • url_alias matches when the page's alias starts with the value, so Match[url_alias]=news covers the whole News subtree (eZTemplateDesignResource treats it as a subtree match).

Combining keys

All conditions of a rule must match:

[mytheme_full_article_in_blog]
Source=node/view/full.tpl
MatchFile=full/blog_article.tpl
Subdir=templates
Match[class_identifier]=article
Match[parent_class_identifier]=blog
Priority=5

There is no "or" inside a rule: write two rules with the same MatchFile instead.

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