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

Layout rules: which page gets which layout

Map layouts to pages with rules - targets (node, subtree, path), conditions (siteaccess, class, time, parameters), priorities and the first-match rule - with recipes and a troubleshooting table.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/creators/website-creators/layout-rules.md

On this page

Layout rules: which page gets which layout

This page is for website creators who decide which pages use which layout. A layout does nothing until a rule points requests at it. Rules live under Mappings in the layouts editor and rule_list in the form-based screens. Source: Rules.

Contents

  1. What a rule has
  2. Targets
  3. Conditions
  4. Priority: the first match wins
  5. Recipes
  6. Troubleshooting

What a rule has

PartMeaning
Layoutwhat to show
Targetswhich requests it applies to
Conditionsextra restrictions that must also hold
Priorityhigher wins when several rules match
Enableda switch to park a rule without deleting it
The Layouts tab of a page: which layout it uses, with Preview, Edit layout, Map layout and New layout
The Layouts tab of a page: which layout it uses, with Preview, Edit layout, Map layout and New layout

Targets

TypeMatches when
nodethe request resolves to this content node
subtreethe request's node lies beneath this location
paththe path equals the value
path_prefixthe path starts with the value
path_info_prefixthe same, normalized to a leading /
path_regexthe path matches a regular expression

A route target type is declared but not implemented and never matches; do not use it. Prefer subtree and node: they follow content when editors rename or move it, while a path breaks.

Conditions

TypeRestricts byValue
siteaccessthe siteaccess serving the requestJSON array of names
content_type / classthe class of the nodeJSON array of class identifiers
query_parameter?name=value in the addressJSON with parameter_name, optional parameter_values
route_parametera user parameter in the paththe same
timethe current timeJSON with from and/or to

Without values, a parameter condition only requires the parameter to be present. An empty time range always matches. An unknown condition type matches: a typo widens the rule instead of disabling it.

Priority: the first match wins

Rules are evaluated by priority and the first match wins. The most common confusion: a layout does not appear because a broader rule with a higher priority catches the request first. Give specific rules (one node) a higher priority than general ones (a subtree, a class).

Layouts, Rules: the mappings with their priority, target, the layout they choose and whether they are enabled
Layouts, Rules: the mappings with their priority, target, the layout they choose and whether they are enabled

Recipes

GoalTargetConditionsPriority
Front page layoutnode = the root nodesiteaccess = ["site"]high
All articles in the News foldersubtree = Newscontent_type = ["article"]medium
A campaign layout for Octobernode = the landing pagetime = {"from":"2026-10-01","to":"2026-10-31"}higher than the page's normal rule
A preview variantnode = the pagequery_parameter = {"parameter_name":"variant","parameter_values":["b"]}high
A site-wide defaultsubtree = the rootlowest

Copying a rule is the quickest way to build a family of similar rules.

Troubleshooting

SymptomCheck
The page shows the old layouta higher-priority rule matches first; the layout is not published; the page cache still holds the old page
A rule applies to too many pagesa misspelled condition type matches everything; the target is a broad subtree
A rule stopped working after a renameit uses a path target; switch to node or subtree
Nothing changes after publishingclear the content view cache and, with Velocity, its response cache

Note

The resolver caches which layout a request gets. When rules or layouts were changed outside the editor (an import, a script), clear the caches of the extension as its documentation says, then the content caches.

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