Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

Give every article the article layout

A Subtree mapping with a Class condition: Full / Article on Subtree 89 for ng_article, ng_blog_post, ng_news at priority 130.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/build-two-ways/examples/launch/map-a-class.md

On this page

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

  1. In the Layouts editor
  2. With templates
  3. Which to choose
  4. Check

In the Layouts editor

  1. Layouts > Layout mappings > New mapping; Link layout: Full / Article; Priority: 130.
  2. Target: Subtree with the site root (node 89), Add target.
  3. Condition: Class: NG Article, NG Blog post, News, Add condition.
  4. Add mapping.

With templates

  1. The template way is override.ini Match[class_identifier]=ng_article for node/view/full.tpl, as the theme does in extension/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_footer shows the Prefooter).

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.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x