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

Lesson 7.3: Troubleshooting which layout a page gets

Learners diagnose the usual mapping problems, a higher-priority match, an unpublished layout, a cached page, a path target that broke, a misspelled condition, and fix each one. 45 minutes.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/trainers/layouts/module-07-mapping-rules/troubleshooting-which-layout-a-page-gets.md

On this page

Lesson 7.3: Troubleshooting which layout a page gets

"I published, and the page still looks the same." Every layouts team hears it. This lesson turns the troubleshooting table of the documentation into a drill: the trainer breaks something on the training site, the learners find it.

At a glance

CourseExponential Layouts
ModuleModule 7: Mapping rules
Duration45 minutes (10 presenting, 35 exercise)
LevelIntermediate
AudienceSite builders and senior editors
PrerequisitesLesson 7.2

Learning objectives

After this lesson, learners can:

  • list the five usual causes of "the page shows the wrong layout";
  • check them in a fixed order: mappings, publish state, caches, targets, conditions;
  • fix each cause;
  • explain when a cache clear is needed and who does it.

Trainer's notes

How to present it

Sources: Layout rules: Troubleshooting and Exponential Layouts: Troubleshooting.

  1. The table (6 minutes). Project it:

    SymptomCheck
    The page shows the old layouta higher-priority mapping matches first; the layout is not published; the page cache still holds the old page
    A mapping applies to too many pagesa misspelled condition type matches everything; the target is a broad subtree
    A mapping stopped working after a renameit uses a path target; switch to node or subtree
    Nothing changes after publishingthe content view cache and, where the site uses one, the web server's response cache
  2. Caches (4 minutes). The layouts resolver caches which layout a request gets. After changes made in the editor and mapping screens, the editor clears or offers to clear caches; the mapping's More actions has a cache clear for one mapping. After changes made outside the editor (an import, a script), an administrator clears the caches as the extension's documentation says.

Common questions

Why does it work signed in but not signed out? Visitors may get a cached copy; the editor's own view is fresh.

May editors clear caches? Some roles may (the right column's Clear cache box, or the mapping's cache clear); otherwise ask an administrator.

How do I see which mapping won for a page? Work through the list in priority order as in lesson 7.1; the first enabled match wins.

Pitfalls

  • Clearing caches first. It hides the real cause when the cause is a priority problem. Check mappings first.
  • Fixing someone else's mapping. Learners fix only the problems on their own test pages.
  • Changing priorities wholesale. Change one mapping at a time and check.

Hands-on exercise

Use the training installation. Before the exercise, the trainer breaks each learner's test page in one of these ways (written on a card the learner does not see):

  • a new enabled mapping with a higher priority and another layout, matching the learner's test page;
  • the learner's course layout has unpublished changes that the learner expects to see;
  • the learner's mapping is disabled;
  • the learner's mapping uses a path target and the test page was renamed.
  1. Open your test page on the site in a private window. Describe what is wrong.
  2. Open Layout mappings and read every mapping that could match your page, in priority order.
  3. Check whether your own mapping is enabled.
  4. Check whether your course layout has a draft with unpublished changes (open it; the editor offers your draft).
  5. Check your mapping's target type: node, subtree or path?
  6. Fix the cause you found: disable or lower the competing mapping (if it is a training mapping made for you), publish your layout, enable your mapping, or change a path target to a node target.
  7. Use the mapping's cache clear (or ask the trainer) and reload the page signed out.
  8. Compare with the trainer's card.

Expected result

  • Each learner found and fixed the cause on their card, and their test page shows their course layout again.
  • The learner can name the five usual causes in order.
  • The trainer checks by reading the cards aloud and asking each learner how they found it.
The Layouts tab of a page: the layout it resolves to and the mappings for it
The Layouts tab of a page: the layout it resolves to and the mappings for it

Quiz

  1. Name three causes of a page showing the old layout.
  2. In which order do you check: caches, mappings, publish state?
  3. A mapping suddenly applies to the whole site. What do you suspect?
  4. Why should you not clear caches first?
  5. A mapping stopped working after a page was renamed. What is the fix? A. Clear the cache B. Change the path target to a node target C. Raise the priority D. Republish the layout
Answers
  1. Any three of: a higher-priority mapping matches first; the layout is not published; the page's cached copy; a path target after a rename; a disabled mapping.
  2. Mappings, then publish state, then caches.
  3. A misspelled condition type (it matches everything) or a broad subtree target (Layout rules).
  4. It hides a priority or publish problem that would come back.
  5. B.

Further reading

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