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

Tutorial: build a landing page with layouts

Step by step, from design to published page: prepare the pagelayout to draw layouts, style the blocks a landing page uses, build the layout in the layouts editor, map it to the page with a rule, and check it on phone…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/designers/theme-design/tutorial-build-a-landing-page-with-layouts.md

On this page

Tutorial: build a landing page with layouts

This tutorial is for a designer, working with an editor, who wants a landing page composed of blocks: a hero, three features, a list of articles, a call to action. Allow one to two hours. It assumes your design draws layouts (Layouts for designers); the media and starter designs already do.

Contents

  1. Step 1: the pagelayout draws layouts
  2. Step 2: decide the blocks
  3. Step 3: style the blocks
  4. Step 4: build the layout
  5. Step 5: map it to the page
  6. Step 6: publish and check

Step 1: the pagelayout draws layouts

In your pagelayout.tpl, where {$module_result.content} used to be:

{def $page_layout = fetch( 'explayouts', 'resolve_layout', hash() )}
{if $page_layout}
    {include uri='design:explayouts/layout.tpl' layout=$page_layout module_result=$module_result}
{else}
    {$module_result.content}
{/if}
{undef $page_layout}

Pages without a matching rule look exactly as before.

Step 2: decide the blocks

Section of the pageBlock (definition)View type
Big picture with headline and buttonherodefault
Three selling pointsthree_columns with rich_text childrendefault
Latest articleslist with a query collectiongrid
Call to actionbuttondefault

Pick from the blocks your installation offers (Block definitions); a new look is usually a new view type, not a new block.

Step 3: style the blocks

Open the template of each block in your design (copy it from extension/explayouts/design/standard/templates/explayouts/block/ if your design has none) and give it the markup you want; then style by class in a stylesheet the pagelayout loads:

.slb-hero { padding-block: var(--site-space-5); background: var(--site-card); }
.slb-hero h1 { font-size: var(--site-text-xl); }
.slb-zone > * + * { margin-block-start: var(--site-space-5); }

Use tokens so the page works in dark mode (Styling layout blocks).

Step 4: build the layout

With the editor, in the administration's layouts editor:

  1. New layout, layout type with a header, main and footer zone (or the type your design uses), name it "Spring campaign".
  2. Link the header and footer zones to the shared header and footer layout, so the page keeps the site's chrome (Shared layouts and linked zones).
  3. Add the blocks to the main zone in order; fill their fields; give the list block its collection (for example the children of the News folder, limit 6).
  4. Preview.

Step 5: map it to the page

Create a rule: the layout "Spring campaign", target node (the landing page) or subtree, optionally a time condition for the campaign period, a priority above the general rules (Layout rules).

Step 6: publish and check

  1. Publish the layout (the site reads only published layouts).
  2. Open the landing page signed out.
  3. Check at 1440 px, at 960 px with scale 2 and at 375 px; in light and dark mode; with the keyboard.
  4. Check one h1 (the hero) and headings in order (Landmarks and headings).
  5. Check layout shift: images in the hero and grid have sizes (Measuring CLS and LCP).

If the page shows another layout, a rule with a higher priority matches first; if it shows no layout, the rule is disabled or the layout not published.

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