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

Designs, siteaccesses and the design fallback chain

How Exponential finds a template, stylesheet or image - site design, additional designs, extension designs and the standard design - and how to read and change the chain for each siteaccess.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/creators/website-creators/designs-and-the-fallback-chain.md

On this page

Designs, siteaccesses and the design fallback chain

This page is for website creators who want to understand why a page uses one template and not another. Every siteaccess has a chain of designs; Exponential walks it and takes the first file it finds. Once you can read the chain, overrides, themes and extensions stop being a mystery.

Contents

  1. The chain
  2. Where designs live
  3. Reading the chain of a siteaccess
  4. What uses the chain
  5. Changing the chain
  6. Common mistakes

The chain

For a template such as node/view/full.tpl, Exponential uses the first match in this order (1. How a template is found):

  1. the override templates whose rules in override.ini match the page, in design/<design>/override/templates/;
  2. the plain templates/ directory of the site design ([DesignSettings] SiteDesign);
  3. the same directories of each additional design (AdditionalSiteDesignList[], in order);
  4. the standard design (StandardDesign=standard in settings/site.ini), the fallback you never edit.

Each design name can exist in several places: in design/ of the installation and in every extension that declares itself a design extension. Extensions are searched in their loading order, so an extension earlier in the list wins over a later one with the same file.

Where designs live

PlaceDeclared by
design/<design>/ of the installationnothing; always searched
extension/<ext>/design/<design>/DesignExtensions[]=<ext> in the extension's settings/design.ini.append.php

A design directory holds templates/, override/templates/, stylesheets/, images/ and javascript/.

Reading the chain of a siteaccess

php bin/php/console exp:ini where site/DesignSettings/SiteDesign <siteaccess>
php bin/php/console exp:ini get site/DesignSettings/AdditionalSiteDesignList <siteaccess>
php bin/php/console exp:ini get design/ExtensionSettings/DesignExtensions <siteaccess>

where prints each file that sets the value and the one in effect; get prints the value (The exp:ini command). To see which file answered on a real page, switch on template path comments for the siteaccess, reload and search the page source for START (Template path comments).

What uses the chain

In a templateFinds
{include uri='design:parts/header.tpl'}a template, through the chain
{'logo.png'|ezimage}an image in images/ of the chain
{'stylesheets/site.css'|ezdesign}any file of the chain
{ezcss_load(...)}, {ezscript_load(...)}stylesheets and scripts of the chain, packed by ezjscore (Stylesheets and scripts)
{node_view_gui content_node=$node view='line'}node/view/line.tpl, or the override that matches

Changing the chain

One siteaccess, its own design first, the theme as fallback:

# settings/siteaccess/<site>/site.ini.append.php
[DesignSettings]
SiteDesign=mysite
AdditionalSiteDesignList[]
AdditionalSiteDesignList[]=simple

The empty AdditionalSiteDesignList[] line clears what earlier files set, so the list is exactly yours. Then clear the caches that remember template locations:

php bin/php/ezcache.php --clear-tag=ini --allow-root-user
php bin/php/ezcache.php --clear-id=template-override --allow-root-user
php bin/php/ezcache.php --clear-tag=template --allow-root-user

To change which extension wins for the same design name, change the extension order (Setup > Extensions: loading order).

Common mistakes

SymptomCauseFix
A new template file is ignoredthe override cache still holds the old lookupclear template-override and template
A theme update wiped your changeyou edited the theme in placemove the change into your own design extension
The admin shows your public designyou set SiteDesign in settings/override/, which applies to every siteaccessset it in settings/siteaccess/<site>/
Your extension's file loses to the theme'syour extension loads after the themeput it first in ActiveAccessExtensions[] or reorder in Setup > Extensions
A page is blank after adding a designthe pagelayout of the new design has an errorphp bin/php/eztemplatecheck.php on the file (5. Check the syntax)

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