Override a single node
This page is for designers who need one page to look different from all others of its class: the front page, a landing page, the contact page.
Contents
The rule
[mytheme_full_front]
Source=node/view/full.tpl
MatchFile=full/front.tpl
Subdir=templates
Match[node_remote_id]=mytheme-front-node
Priority=0Priority=0 puts it before the class rules (Override ordering).
Node id or remote id
| Key | Works on | Survives a reinstall or a copy to another installation |
|---|---|---|
Match[node]=2 | that node id | no: ids differ between installations |
Match[node_remote_id]=... | the node's remote id | yes, when the content is installed from a package that keeps remote ids |
Match[remote_id]=... | the object's remote id (all its locations) | yes |
The starter theme matches its root page with Match[remote_id]=cjw-starter-o-root, set by its content package.
Finding the remote id
In the administration, the node's details show it, or in a template on a test page:
{$node.remote_id|wash} (node) and {$node.object.remote_id|wash} (object). A developer can set a readable remote id
when the content is created by a package or script.
Alternatives
- A layout for the page, when editors should be able to change its structure (Layouts for designers).
- A class of its own (for example
frontpage), when several pages share the special look. - A section, when a whole area differs (Override by section).
Related pages
- Override match keys
- Override basics
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
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.