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

Layout types and zones

The layout types defined in explayouts.ini (1 to 4 columns, hero, sidebars, featured, mosaic, header/main/footer, admin types), their zones, the template that draws each grid, and how to add a layout type of your own.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/designers/theme-design/layout-types-and-zones.md

On this page

Layout types and zones

This page is for designers who decide the grids editors can choose. A layout type fixes the zones of a layout and, optionally, the template that places them. Editors pick the type when they create a layout and cannot change it later, because blocks are attached to zones.

Contents

  1. The shipped layout types
  2. A layout type in the settings
  3. The layout type template
  4. Adding a layout type

The shipped layout types

From extension/explayouts/settings/explayouts.ini.append.php:

TypeNameZonesTemplate
1_column1 columnmainlayouts/1_column.tpl
2_column2 columnsleft, rightlayouts/2_column.tpl
3_column3 columnsleft, main, rightlayouts/3_column.tpl
4_column4 columnscol1 to col4layouts/4_column.tpl
heroHero + 3 columnstop, left, main, rightlayouts/hero.tpl
sidebar_left, sidebar_rightSidebar left / rightsidebar, mainlayouts/sidebar_*.tpl
featuredFeaturedhero, feature1 to feature3, bottomlayouts/featured.tpl
mosaicMosaica to elayouts/mosaic.tpl
layout_1Single zonemainnone
layout_2Header / Main / Footerheader, post_header, main, pre_footer, footernone
layout_4Header / Left / Right / Footerheader, post_header, left, right, pre_footer, footernone
admin_3col, admin_2col, admin_fullAdmin types (Group=admin)header, topmenu, left (3col, 2col), right (3col), main_top, main, main_bottom, footernone; drawn by the admin4l pagelayout

A type without Template= has its zones drawn one under another by layout.tpl; your CSS places them.

A layout type in the settings

[LayoutType_2_column]
Name=2 columns
# The template that draws the zones in their places (explayouts/layout.tpl uses it).
Template=explayouts/layouts/2_column.tpl
Zones[]=left
Zones[]=right

The layout type template

layouts/2_column.tpl draws each zone in its place and lets zone_blocks.tpl draw the blocks:

<div class="slb slb-2-column" data-layout-id="{$layout.id|wash}">
    {foreach $layout.zones as $zone}
        {if eq( $zone.identifier, 'left' )}
            <div class="sevenx-zone sevenx-zone-left" data-zone-id="{$zone.id|wash}">
                {include uri='design:explayouts/zone_blocks.tpl' zone=$zone module_result=$module_result}
            </div>
        {/if}
        ...
    {/foreach}
</div>

Adding a layout type

In your design extension's settings/explayouts.ini.append.php:

[LayoutType_mytheme_split]
Name=Split: wide and narrow
Template=explayouts/layouts/mytheme_split.tpl
Zones[]=wide
Zones[]=narrow

and the template design/mytheme/templates/explayouts/layouts/mytheme_split.tpl in the style above. Use a prefix of your theme in the identifier. Clear the INI cache and the template override cache; the type appears when editors create a layout. The starter theme limits which layout types belong to its design with its own cjw_jumper.ini [LayoutSettings] LayoutTypes[].

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