Shared layouts and linked zones
This page is for designers who plan a site where header, footer or other regions are the same on every page and editors change them in one place. The layouts editor does this with shared layouts.
Contents
How it works
- A layout marked shared is not mapped to pages by a rule; it exists to be borrowed.
- Any zone of another layout can be linked to a zone of a shared layout. It then shows the shared layout's blocks in place of its own.
- Edit the shared layout, publish, and every page that links to it follows.

On the demonstration installation the "Header / Footer" and "Prefooter" layouts are shared and linked from the other
layouts (layout type layout_2, with zones header, post_header, main, pre_footer, footer).
What the designer plans
- Layout types with stable zone names. A
headerand afooterzone in every layout type of your design make linking straightforward. - Block templates that work in any zone. A block from the shared footer is drawn inside the linking layout's zone markup; it must not assume its original surroundings.
- One stylesheet for header and footer blocks: they appear on every page.
How a linked zone renders
The zone template draws the blocks of the shared layout's published zone instead of its own; for templates nothing
changes, the blocks arrive in $zone.blocks as usual (doc/eng-us/bc/6.0/LAYOUTS.md, "How rendering actually works": "or,
for a linked zone, the shared layout's blocks").
Rules worth knowing
- Only published shared layouts can be linked: a zone never shows someone's unfinished draft.
- A linked zone ignores its own blocks while the link exists; removing the link restores them.
- Blocks of a published shared layout cannot be edited through a linking layout: open the shared layout and draft it.
- The legacy admin's "Shared layouts" screen counts the zones linking to each shared layout; check it before changing or deleting one.
Related pages
- Layout types and zones
- Layouts for designers
- The layouts editor
- 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.