A different layout for one language
The German home page has a different hero than the English one.
Life cycle: Launch, example 17 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: the German home layout; Priority: above the general home mapping.
- Target: Location with the home node, Add target.
- Condition: Siteaccess and choose the German siteaccess in the list, Add condition.
- Add mapping.
The Starter mappings of this installation work that way: siteaccess: starter, starter_ger.
With templates
- Per-siteaccess
override.iniin your extension'ssettings/siteaccess/<sa>/is the template way.
Which to choose
Only when the composition differs; translated content alone needs no extra layout.
Check
- Each siteaccess shows its layout.
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.