HomeCore Learning Journey › Lab 6 — Build the plan page template

Lab 6 — Build the plan page template

Purpose: Create an editable template for PHI plan pages with locked structure, useful initial content, and sane policies.

Who this page is for

AudienceWhy it matters to you
All engineersPairs with Session 6

Goal

A "Plan Page" template such that a new plan page starts 80% assembled and authors can only place approved components.

Steps

  1. Open the Templates console (/libs/wcm/core/content/sites/templates.html/conf) → your project folder →

Create → pick the base page component from your archetype.

  1. In Structure mode: add a layout container for the main area; lock header/footer regions.
  2. Set the main container's policy: allowed components = "PHI Academy" group + Text + Image. Name policies

descriptively ("PHI plan main container") — they are shared, reusable objects.

  1. In Initial Content mode: pre-add an empty Plan Card and a Text component with disclaimer placeholder text.
  2. Enable the template, then create Bronze Hospital Cover from it in Sites. Confirm the pre-seeded components exist.
  3. Prove the asymmetry: change structure (add a locked component) → check the existing Bronze page updated;

change initial content → confirm Bronze did NOT change, but a newly created page does.

  1. In CRXDE, inspect /conf/<project>/settings/wcm/templates/ and find your policy mapping nodes.

Checkpoint

VerifyExpectation
Component offeringOnly policy-allowed components appear in the insert dialog
Structure propagationExisting pages reflect structure edits
Initial content isolationExisting pages ignore initial-content edits
Template in page nodecq:template property on new page points to your template

Quick navigation