Give every article the article layout
All articles, blog posts and news below the site root share one layout.
Life cycle: Launch, example 2 of 33. Worked out on the Fit & Healthy site of Exponential 6.0.15+.
Contents
In the Layouts editor
- Layouts > Layout mappings > New mapping; Link layout: Full / Article; Priority: 130.
- Target: Subtree with the site root (node 89), Add target.
- Condition: Class: NG Article, NG Blog post, News, Add condition.
- Add mapping.
With templates
- The template way is
override.iniMatch[class_identifier]=ng_articlefornode/view/full.tpl, as the theme does inextension/sevenx_themes_media/settings/siteaccess/site/override.ini.append.php.
Which to choose
The class mapping is the backbone of a Layouts site; full view overrides still render what the layout's blocks include.
Check
- A newly published article gets the layout (its
pre_footershows the Prefooter).
Related pages
- Which layout does a page get?
- Launch examples, every page
- 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.