Page Designer page types, components and aspects
How to build Page Designer page and component types from meta definition JSON and render scripts, choose attribute types, render pages and regions with PageMgr, add dynamic pages with aspect types, and stay within caching and size limits.
Given a business requirement and design for a new marketing page, develop page types and components to allow a marketer to build a page with the Page Designer tool.
~7 min read · 14 practice questions ·
What the exam expects
- Create a page type or component type as a meta definition JSON file plus a same-named script with a
renderfunction, in the rightexperiencefolder and with valid names. - Choose attribute types for a marketer's editing need, and predict how
requiredanddefault_valuebehave. - Render pages with
PageMgr.renderPageand regions withPageMgr.renderRegion, and print region markup without HTML-encoding it. - Build dynamic pages with aspect types,
dynamic_lookupandgetPageByCategory/getPageByProduct, and prepopulate regions withdefault_component_constructors. - Apply the rules for custom attribute editors, incompatible meta definition changes, page caching and the 3 MB page limit.
Key terms: page type (a page template whose meta definition describes regions); component type (a reusable building block whose meta definition describes merchant-configurable attributes and optional regions); meta definition file (the JSON file that defines a type); region (an area that holds components); aspect type (a meta definition that makes a page dynamic, with attributes passed at render time and an optional category or product binding).
Key facts
- Detail
- JSON meta definition + same-named
.jsin the same folder
- Detail
- Alphanumeric or underscore only
- Detail
- Subfolder path and file name joined by periods
default_value- Detail
- Renders and previews; never preselected
markup attribute- Detail
- Rich text editor
- Detail
- On the Business Manager site's cartridge path
renderPage- Detail
- Two layers of remote includes; nested pages unsupported
getPageByProduct- Detail
- No category tree traversal
- Detail
- Shortest wins
- Detail
- 3 MB, below the 10 MB ISML limit
- When do page type and component type IDs cause errors because of length?
- Why add the
renderPagecall to thePage-Showcontroller? - What does
pageMustBeVisibledo ingetPageByCategory? - Why does each custom attribute editor run in an iframe?
The questions are free to read. Answers with their sources and self-grading are included with the pack.
Keep reading with the B2C Commerce Developer pack
- Core concepts
- Exam traps
- Worked scenario
The pack includes:
- All 28 lessons of the B2C Commerce Developer guide, with reading progress
- Interactive decision walks and step-by-step sequence steppers
- Practice exams purchase adds inline bank questions and topic practice (14 questions for this lesson)
- An official source cited for every claim
- An AI tutor that answers from the guide
- Choose guide-only, practice-only, or save $4 with both