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

Build a campaign page, start to finish

The complete life of one campaign page in the Layouts editor, every step on screen - create a layout, link its header and footer to the shared layout, add a Hero, publish, create the page in the content tree, map the…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/build-two-ways/build-a-campaign-page.md

On this page

Build a campaign page, start to finish

This is the one example on these pages that goes through every screen, on a copy of the Fit & Healthy site: a Spring campaign page at /spring-2027 with the site's header and footer and a Hero. It took six screens and no code. The second half builds the same page with templates.

Contents

  1. Create the layout
  2. Link the header and the footer
  3. Add the Hero
  4. Publish the layout
  5. Create the page
  6. Map the layout to the page
  7. The result
  8. The same page with templates

1. Create the layout

Layouts > Layouts > New layout. Choose the layout type Header / Main / Footer (layout_2, the type of every Fit & Healthy layout: zones header, post_header, main, pre_footer, footer), give a Name and an Identifier, and press Create layout.

The Create layout form: layout types, Header / Main / Footer selected, Name Spring campaign, Identifier spring_campaign
The Create layout form: layout types, Header / Main / Footer selected, Name Spring campaign, Identifier spring_campaign

The editor opens with five empty zones.

Press the linking button at the bottom left of the editor. Each zone gets Link zone.

The editor in linking mode: every zone has a Link zone button
The editor in linking mode: every zone has a Link zone button

Link zone on HEADER shows the shared layouts. Choose Header / Footer and press Select zone on its HEADER zone.

Choose one of the shared layouts and then select a target zone: Header / Footer with its zones and Select zone buttons
Choose one of the shared layouts and then select a target zone: Header / Footer with its zones and Select zone buttons

The editor returns with the header zone linked: it shows the shared blocks striped, as they are not this layout's own. Do the same for FOOTER.

The header zone linked: the template blocks header and breadcrumb shown striped
The header zone linked: the template blocks header and breadcrumb shown striped

3. Add the Hero

Open the block palette (+ at the top left), drag Hero (group Components) into MAIN, select it and fill its fields: Title, Content, Image URL, Image alt text, Link text, Link URL.

The Hero block with Title Spring training plans, content, image URL, alt text, link text See the plans and link URL /fitness
The Hero block with Title Spring training plans, content, image URL, alt text, link text See the plans and link URL /fitness

4. Publish the layout

Publish layout. The layout exists now, but no page uses it yet.

5. Create the page

In Content structure, open Fit & Healthy, Create new > Landing page, title Spring 2027, Send for publishing. Its URL is /spring-2027.

6. Map the layout to the page

Layouts > Layout mappings > New mapping. Link layout: Spring campaign. Priority: higher than the mappings that would otherwise take the page (2500 here). Target Path spring-2027, Add target. Add mapping.

The New mapping panel: Link layout Spring campaign, Priority 2500, a Path target spring-2027
The New mapping panel: Link layout Spring campaign, Priority 2500, a Path target spring-2027

7. The result

The campaign page: the site header, the Hero with the image, Spring training plans, the text and the See the plans button, the site footer
The campaign page: the site header, the Hero with the image, Spring training plans, the text and the See the plans button, the site footer

The header menu in this picture is the one of A header menu that follows the tree, which was active on the test copy.

The same page with templates

Without Layouts, the page's look comes from its full view template. The theme already shows how to give one page its own full view: extension/sevenx_themes_media/settings/siteaccess/site/override.ini.append.php matches the tour page (/exponential-live) by its remote ID, before the class overrides:

[node/view/full#showcase_s1_tour]
Source=node/view/full.tpl
MatchFile=node/view/full/showcase_s1_tour.tpl
Subdir=templates
Match[remote_id]=showcase-s1-tour
Priority=0

The same in your extension for the campaign page: a block like this in extension/mysite/settings/siteaccess/site/override.ini.append.php with Match[remote_id]= the page's remote ID (shown in the administration as Remote ID), and the template extension/mysite/design/media/override/templates/node/view/full/spring_2027.tpl with the Hero markup and the page's fields ($node.data_map.title, $node.data_map.full_intro, $node.data_map.image of the class Landing page). It keeps everything in git; every change of text or picture is a deploy, and an editor cannot move or add blocks.

Layouts editorTemplate override
Steps heresix screens, no codean override block, a template, a deploy, a Template & content clear
Who changes the text lateran editor, in the Hero blocka developer, in the template
Reuse for the next campaigncopy the layout or change the Herocopy the template and the override block
Header and footerlinked to the shared layoutthe page layout of the design, as for every page

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