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

Check every page type by its markup

Layouts and templates leave markers in the HTML (zone sections, ngl-block classes, menu item IDs) that a script can check before launch.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/build-two-ways/examples/launch/check-pages-by-markup.md

On this page

Check every page type by its markup

A one-minute check that each page type renders its layout.

Life cycle: Launch, example 11 of 33. Worked out on the Fit & Healthy site of Exponential 6.0.15+.

Contents

  1. In the Layouts editor
  2. On the command line
  3. Which to choose
  4. Check

In the Layouts editor

  1. In the editor, compare the blocks of the layout with what the page shows.

On the command line

  1. For each page type, request one page and look for its markers:
curl -s https://www.example.com/fitness | grep -o 'zone zone-[a-z_]*' | sort -u
curl -s https://www.example.com/fitness | grep -c 'ngl-block '
curl -s https://www.example.com/ | grep -o 'menu-item-main_menu-location-id-[0-9]*'

Which to choose

The script runs after every deploy; the editor comparison when something is missing.

Check

  • Every page type has zone-header, zone-main and zone-footer sections and a plausible block count.

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