7x Products Exponential Code Templates and overrides
← Exponential Code

// Exponential Code

Templates and overrides

From a page to the template that draws it, and from a template to every rule that uses it. A new override in one step, and the classic template pages taken over in the next release.

Exponential 6 Open source · GPL v2 or later
The Overrides view: go to the template of a page, the base template of the open file, New override, and the list of templates with their number of rules The Overrides view: go to the template of a page, the base template of the open file, New override, and the list of templates with their number of rules
The Overrides view: go to the template of a page, the base template of the open file, New override.

Overrides both ways, in 0.0.0.1

  • From a file to its rules: for a design file the Overrides view shows whether it is the base template of a source such as /node/view/full.tpl or the file of an override rule, with the whole chain of that source in the order the rules are tried, and their conditions.
  • From a page to its file: type an address, a URL alias or a node id in "Go to the template of a page" (Ctrl+Alt+G) and the winning template opens.
  • The siteaccess chooser in the status bar sets whose rules are read.
  • The node tab "Templates" in the content structure: one button per siteaccess opens the template that renders the node.
  • Compare with the overridden template: the base template beside your override, and what changed in the base since the override was made.

The override wizard

  1. Choose the source template, up to three conditions (class_identifier=article, node=2 ...), the rule name, where the rule is written (a siteaccess or an extension) and the siteaccess.
  2. Preview shows the new file, a copy of the template that wins now, and the change to override.ini, with any problem listed before anything is written.
  3. Create the override writes the file and the rule through the kernel's settings editor, with its backup, clears the override, INI, template and content caches, records it to the audit and opens the new template.

Writing settings needs the publish policy for the whole installation; the Designer role can preview, not create. Step by step: Override a template for one content class.

In development: the Templates page

The next release brings the Templates page into the workbench, so everything the kernel's Design > Templates pages did is in one place. It is in development now and not part of 0.0.0.1:

  • every template of a siteaccess, with the design it resolves in and its number of rules;
  • the chain of a template as the kernel resolves it, numbered, with each rule's conditions and the settings file it comes from;
  • which rule wins for a node, and every template a node's page uses, page layout included;
  • creating, editing, reordering and removing override rules where the chain is shown.
The node tab Templates in the content structure: one button per siteaccess opens the template that renders the node The node tab Templates in the content structure: one button per siteaccess opens the template that renders the node
The node tab "Templates": the template that renders the node, per siteaccess.
The Outline view: the nested blocks, includes and definitions of the open template The Outline view: the nested blocks, includes and definitions of the open template
The Outline view: the structure of a template; Where used lists who includes it.

// why Exponential

Ready for production on day one. Secure by default.

Other systems make you program before you see a result. Exponential is a finished platform the moment the installation ends.

01

Installed = shippable

Content model, roles, versions, workflows, search and caching are there when the installer finishes. No plugins to pick, no code to write first.

02

Request shield built in*

A web application firewall decides every request before the site runs. WordPress's own hardening guide sends you to plugins or a separate firewall.

03

No kernel gluing

Frameworks hand you components to assemble into a CMS. In Exponential that work is done, tested and maintained for you.

Stop reinventing the wheel. Drive the roadster: the price of an entry-level car, built like a tank for production.*

*No system is immune to every attack; Exponential ships the request shield and secure defaults so most common attacks are blocked before they reach your site, and 7x keeps it patched.

// more about Exponential Code

Keep exploring.

Exponential Code →

Features

Everything the workbench does in 0.0.0.1, view by view: the editor, language services, preview, source control, working together and the…

Read more →

Drafts and publishing

Every change is your own draft until you publish it. A publish checks the file, keeps a backup, writes it, commits it and clears what it…

Read more →

Security and accessibility

Policies and a Designer role, masked secrets, a terminal that is off by default, a security review before it shipped, and WCAG 2.2 AA in…

Read more →

Install

Exponential Code comes with every Exponential installation on PHP 8.0 or later. Activate it, create its drafts table, give your designers…

Read more →

Download and releases

The latest release is 0.0.0.1, from November 29, 2026. Get it with Composer or from GitHub.

Read more →

Edit your site where it runs.

Switch Exponential Code on in a few minutes, or let 7x set it up, with roles for your designers, on 7x hosting.