Override by parent
This page is for designers who want content to look different depending on where it is placed: an article under a blog, items in the news folder, top-level pages.
Contents
By the parent's class
[mytheme_line_post_in_blog]
Source=node/view/line.tpl
MatchFile=line/blog_post_in_blog.tpl
Subdir=templates
Match[class_identifier]=blog_post
Match[parent_class_identifier]=blog
Priority=10Portable: works wherever blogs are placed.
By a specific parent
Match[parent_node_remote_id]=mytheme-news-folder (portable) or Match[parent_node]=61 (this installation only).
Matches only the direct children.
By a subtree
Match[url_alias]=news matches every page whose URL alias starts with news: the whole News area at any depth.
Note that it follows the URL, so renaming the folder breaks the rule; a section is the more robust tool for a large
area (Override by section).
By depth
Match[depth]=2 matches pages directly under the root (the root node of the tree has depth 1); handy for a different
template for top-level pages.
Related pages
- Override match keys
- node_view_gui
- 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.