Project 4: a page with layouts
Exponential Layouts lets editors and site builders arrange pages from blocks in zones. In this project you build the landing page of your student club from project 2 with the layouts editor, publish it and map it to one page.
Contents
At a glance
| Level | Beginner |
| Time | About 2 hours |
| Paths | Editor, designer |
| Prerequisites | A study site with the Layouts tab (the default site package uses the explayouts extensions, Site packages for learners); project 2 |
If you do not see the Layouts tab, your role may not work with layouts, or the site was installed without the layouts extensions (The layouts editor).
Goal
A published layout for the "Student club" folder with at least two zones and five blocks, including a list of your news articles, mapped so that only that page uses it.
Before you start
Read The layouts editor and How do I build a page with layouts?. Learn the words: layout, layout type, zone, block, mapping (also called a rule) and shared layout.
Tasks
- Open the dashboard. The Layouts tab opens the Layouts Dashboard with the numbers of layouts, zones, blocks and mappings. Note them.
- Create a layout. Press New layout, choose a layout type with at least two zones (for example 2 columns or Sidebar left), name it "Student club landing" and press Create layout.
- Add blocks. Press Add a block and drag at least five blocks into the zones: a Title, a Rich text, an Image, and a block from the Listing group that shows your news articles.
- Configure them. Select each block; fill its Content tab (the text, or which items the list shows and how many) and look at its Design tab.
- Save a draft. Use Save draft and close. Open the layout again: your work is there, and the site is unchanged, because you always work on a draft.
- Publish with Publish layout.
- Map it. In Rules (the mappings), add a mapping with New mapping whose target is the "Student club" folder only. Check that it is Enabled. The first enabled mapping by priority whose targets and conditions match a page wins.
- Check on the site. Open the folder on the public site: the page shows your layout. Open another page: it does not. If the editor asks whether to clear caches after publishing, choose Clear caches.
- Look at the page's Layouts tab in the administration: it shows the layout the page resolves to and the mappings applied.
All steps follow The layouts editor.
Hand in
- Screenshots: the layout in the editor with its zones and blocks; the mapping with its target; the public page; the page's Layouts tab.
- The layout's name, type, and the numbers on the dashboard before and after.
- A short report: what each block shows, why you chose the layout type, and how the mapping decides where the layout is used.
Rubric
Score the four common criteria of Grading your own work, and these checks (7):
- The layout has at least two zones in use and five blocks.
- A listing block shows the learner's own articles.
- A draft was saved and reopened before publishing.
- The layout is published.
- One enabled mapping targets only the club folder.
- Another page is shown to be unaffected.
- The report uses the words layout, zone, block and mapping correctly.
Stretch goals
- Link a zone of your layout to a zone of a shared layout (the button at the bottom of the left side of the editor), and explain why a header built once can serve many pages (Shared layouts and linked zones).
- Add a mapping with a condition (for example a content type) and explain which mapping wins.
- Follow the trainers' Exponential Layouts course, module 7, on mapping rules.
Related pages
- Study projects: overview
- The layouts editor
- Learning path: 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.