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
- 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.
- 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.
- 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.