← All tutorialsIntermediate · 60–90 min

Tutorial: Build a Blog on Pagenth — from scratch

Author's-path tutorial. Walks a designer through creating three reusable PageTemplates (Blog Index, Blog Category, Blog Post) plus a SiteTemplate that bundles them into a runevr-grade blog. End result: a working blog where new posts auto-bind to the right template, posts render with rails + TOC + sharing, and the whole structure is packaged for reuse.

This tutorial is verified — every step is walked in the live UI before it's documented. If something doesn't work for you, stop and report it.

If you just want to USE the blog (install the published pack into your project, no authoring), there's a separate "Install a starter pack" guide for that.


Prerequisites

  • A Pagenth project to author the blog in.
  • The can_design capability on that project (workspace owner / admin automatically has it).
  • A workspace selected in the workspace switcher matching the project.

Step 1 — Verify your access

  1. Open your project — URL https://app.cms.local:3001/w/<your-project-slug>/.
  2. Click the logo in the top-left of the sidebar to open the File menu.
  3. Under the Project section, confirm both items are visible:
    • Templates (icon ❏)
    • Site Templates (icon 📦)
  4. Click Templates → page loads at /w/<slug>/templates/.
  5. Back to the File menu → Site Templates → page loads at /w/<slug>/site-templates/.

If either menu item is missing you don't have can_design on the project — ask the workspace owner to grant it before continuing.

Verified ✅ — Step 1 reachable from debo (workspace BLOBING).


Step 2 — Create the empty Blog Category template

Actions

  1. Open /w/<your-project-slug>/templates/.
  2. Click the blue + New Template button (top-right).
  3. A form panel opens. Fill it:
    • Name: Blog Category
    • Description: Category landing page — navbar + heading + post feeds.
    • Page Type: leave at page (default)
  4. Click Save.
  5. The form closes and you're auto-routed to /w/<slug>/templates/<new-id>/edit. The canvas editor mounts.

Verify

  • URL ends in /templates/<number>/edit.
  • Top of the editor shows the template name "Blog Category".
  • The canvas area is empty and the layers panel shows just a root node.

Result

Verified ✅ 2026-05-12.

Gotchas

Two gaps surfaced during initial verification, both now fixed in the codebase:

  1. "You can't edit this template" even for the workspace owner who just created it. Root cause: PageTemplateSerializer.get_can_edit passed project=None so the project-scope cap branch couldn't resolve. Fixed by passing obj.project into the helper.

  2. Layers / Components / Assets / Logic tabs missing in the canvas editor, only Pages was shown. Root cause: the AppSidebar isInCanvasEditor regex only recognised /design/ and /components/<slug>/edit paths — /templates/<id>/edit and /site-templates/<id>/edit were not in the list, so the sidebar collapsed to pages-only. Fixed by extending the regex.

Both fixes shipped before this step was verified. Refresh the page if you were stuck on this.

Two more bugs surfaced while authoring the heading section in Step 2.2, also fixed:

  1. Style panel search crashed (text.toLowerCase is not a function). Root cause: the BackgroundImageField Label passes a JSX node as text (the fx-toggle row), but Label typed text: string and called .toLowerCase() directly. Fixed by widening text to React.ReactNode and only applying the search-filter check when typeof text === "string".

  2. fx field crashed mid-typing on dotted paths (expected ident (at N) from the binding parser). Typing page.metadata.title passes through invalid intermediates like page.metadata. on its way to a valid expression, and each invalid keystroke threw out of the renderer. Fixed by wrapping evaluate()'s expression branch in a try/catch — partial expressions resolve to null until they parse cleanly.


Step 2.2 — Add the heading section (page title + tagline)

Actions

  1. Open the 🎯 Preview data floating panel (top-right of the canvas) and fill:
    • Page title: Production
    • Page metadata (JSON): { "title": "Production", "tagline": "Stories, tips and insights for film production teams" }
  2. Click Insert → Stack.
  3. With the Stack selected, set Layout → direction column, gap 12px, padding 64px 24px 32px 24px.
  4. Inside the Stack, Insert → Text. Set tag to h1. Click the fx toggle on the text field and enter page.metadata.title.
  5. Inside the same Stack, Insert → Text (leave tag as p). fx-toggle the text field → enter page.metadata.tagline.
  6. Style the h1 (size 48px, weight 700, line-height 1.1) and the p (size 18px, color #475569, max-width 640px).

Verify

  • Canvas renders Production as h1 + the tagline below.
  • Toggling Preview data → changing metadata.title updates the h1 live.

Result

Verified ✅ 2026-05-12.

Gotchas

  • Bind the h1 to page.metadata.title, not page.title. page.title exists on the model but is the slug/internal label — the human-facing title that the writer edits in Page Settings lives at page.metadata.title.
  • The fx field crashed mid-typing on dotted paths (expected ident (at N)) because the parser threw on intermediate states like page.metadata.. Fixed — partial expressions now resolve to null until they parse.
  • Style-panel search crashed (text.toLowerCase is not a function) when the BackgroundImage Label rendered a JSX node instead of a plain string. Fixed — Label now accepts ReactNode and only filters string labels.

Step 2.3 — Add the category navbar

A category page (like Production or Management) lives under the Blog. The navbar at the top of each category page lists all the other categories so a reader can jump between them. In page-tree terms, those other categories are this page's siblings.

Actions

  1. In Layers, click the root node (so the navbar inserts at the top level, not inside the heading Stack).
  2. Click Insert in the top toolbar → choose Category navbar.
  3. In Layers, drag the new navbar Stack so it sits above the heading Stack.
  4. With the navbar Stack selected, open the Props tab in the right panel. Under FEED SOURCE, pick Sibling pages.
  5. Still in Props:
    • Page type: leave blank
    • Layout: confirm Nav links (Blog navbar)
    • Limit: 12
    • Order: Manual order
    • Eyebrow / heading: leave blank
    • Show "Load more": OFF
  6. Open the Style tab and style the navbar Stack:
    • Background: #ffffff
    • Padding: Top 16, Right 24, Bottom 16, Left 24
    • Border-bottom: 1px solid #e2e8f0
    • Gap: 8px

Verify

  • Layers order, top-to-bottom: root → Navbar Stack → Heading Stack.
  • Canvas shows a row above the heading. While the template isn't bound to a real page, the navbar may render only the Blog root link (or appear empty) — that's expected. Once a real category page is bound in Step 8, the navbar will list its siblings.

Result

Verified ✅ 2026-05-13.

Gotchas

  • The Insert-menu preset defaults Feed Source to This page's children. That's correct for the Blog Index template (Step 4), where the index page's children = the categories. For a Blog Category template you must change it to Sibling pages — easy to miss.
  • The right-panel tab is named Props, not "Feed". The feed-related fields live inside it under FEED SOURCE.
  • The inspector speaks in human labels ("This page's children", "Sibling pages", "Specific page") — there's no $self/$parent lingo in the UI.

Step 2.4 — Add the featured post (Editor's-pick hero)

A category page typically has one large "Editor's pick" hero card below the heading. This step introduces the canonical composition pattern you'll use everywhere a list of things is rendered: Container → Repeater → Item template.

Mental model

  • Container (Stack/Grid/Frame) owns arrangement — how iterations lay out.
  • Repeater owns iteration — it's for (item of items). Layout-transparent.
  • Item template owns per-row styling — cloned once per data row, bindings inside resolve against loop.item.*.

Actions

  1. In Layers, click the root node.
  2. Insert → Editor's picks (1 large) (under the Feeds group).
  3. In Layers a 3-node composition lands: outer Stack ("Hero") → Repeater → inner Stack ("Hero") with Image + Title + Excerpt children.
  4. With the Repeater selected, open the Props tab and confirm under FEED SOURCE:
    • Source: This page's children
    • Editor's picks only: ON
    • Order: Most recent
    • Limit: 1
  5. With the outer Stack selected, open Style tab and add padding 32 24 (top/bottom 32, sides 24), max-width 1100, margin-x auto.

Verify

  • Canvas renders one placeholder hero card with a cover-image tile, "Page 1" as the h2 title, and "Placeholder excerpt for preview only." as the p excerpt.
  • Layers tree (from outer to inner): Stack ("Hero") → Repeater → Stack ("Hero") → [Image, Title, Excerpt].

Result

Verified ✅ 2026-05-13.

Gotchas

  • The FEED SOURCE inspector used to have a Layout dropdown (Grid-3, Nav-links, Featured, etc.) — this was vestigial from before the Phase 2 refactor and was removed. Arrangement now lives on the outer Stack's Layout panel.
  • The Image inside the item template binds its src to loop.item.cover_image_url. In placeholder mode (template editor with no bound page) that resolves to null and the image shows the "🖼 Add image src" placeholder tile — that's correct. In production it'll resolve to the real cover URL of the editor's-pick post.
  • loop.item.excerpt, loop.item.title, etc. are the per-row scope. Today these come from the Page model's fixed columns. After Phase 2.12 (user-defined Page Schema) the same names will work but extra typed fields can be added by the project author.

Step 2.5 — Add the posts grid (3-col Latest)

The bulk of the category page: every post in this category rendered as a card in a 3-column grid. Same composition pattern as the hero — different layout container (Grid instead of Stack), simpler item template.

Actions

  1. In Layers, click root.
  2. Insert → Latest grid (under Feeds).
  3. Drag the new composition so it sits at the bottom of the page: root → Navbar → Heading → Hero → Posts grid.
  4. Select the Repeater inside the Posts-grid composition. Open Props tab and set under FEED SOURCE:
    • Source: This page's children
    • Order: Most recent
    • Limit: 9 (or 0 for all)
    • Show "Load more": ON, Load increment: 9
  5. Select the outer Grid (the wrapper around the Repeater). Style → Layout:
    • Confirm Layout type is grid, Columns stepper shows 3, Gap 16px.
  6. Same outer Grid → Style → Sizing/Spacing:
    • Max-width: 1100
    • Margin left/right: auto (centers the grid on the canvas — root is absolute-positioned so margin-auto is the canonical mechanism here).

Verify

  • Canvas renders 9 placeholder cards in a 3-col grid below the hero.
  • Layers tree: Grid ("3-col grid") → Repeater → Stack ("Card") → [Cover, Title, Excerpt].

Result

Verified ✅ 2026-05-13.

Gotchas

  • Centering a child of the absolute-positioned canvas root is done via the child's margin: auto (left/right). The Style → Layout panel has Align/Distribute but those only apply when the PARENT is flex/grid — they're no-ops for an absolute parent. A child-side "Align in parent" widget that auto-picks the right mechanism is tracked as Phase 2.14.
  • The Grid columns input is a friendly stepper (1–12) for the equal-columns case and a raw track-list string ("260px minmax(0,1fr) 280px") for advanced uses. Toggle between them with the "Equal" / "Advanced" button on the Columns label.

Step 3 — Publish Blog Category v1.0.0

Actions

  1. From the template editor click Back → returns to /w/<slug>/templates/.
  2. On the Blog Category card, click the amber "Versions" pill (top-right of card body).
  3. The Versions panel expands. Click amber "+ Publish".
  4. Form opens with Version pre-filled (1.0.0 for first publish, next-patch bump otherwise).
  5. Optional: Changelog field — fill with Initial release. Category landing page with navbar, heading, editor's-pick hero, and posts grid.
  6. Click Publish version.

Verify

  • Form closes; the Versions panel re-renders showing a row with 1.0.0.
  • The template is now installable into any project via Apply Template (we'll exercise this in Step 8).

Result

Verified ✅ 2026-05-13.

Gotchas

  • First-time publish for a template starts at 1.0.0 by default. Subsequent publishes auto-suggest the next patch version (1.0.1, 1.0.2, …). Designer can override before submitting — pick 1.1.0 / 2.0.0 explicitly for minor/major bumps.

Step 3.5 — Extract the Site Navbar as a reusable Component

The navbar is identical across Blog Index, Blog Category, and Blog Post. Author it once, reference it everywhere.

Actions

  1. Open the Blog Category template editor.
  2. In Layers, select the Repeater inside the navbar Stack. Props tab → FEED SOURCE → Specific page → Page path /blog. (Specific path works on every page that hosts the navbar; sibling-based feeds break on Posts.)
  3. Select the outer Stack (the navbar wrapper) in Layers.
  4. In the floating action chip above the selection, click ★ Make Component.
  5. Fill the dialog: Name Site Navbar, Category Navigation. Click through Review props (empty list is fine — bound fields skip prop extraction). Save.
  6. The outer Stack collapses to a single Component instance node.
  7. Click the instance → Props tab → ↗ Edit master → confirm the tree.
  8. From /w/<slug>/components/, open the Site Navbar editor → click Publish in the top bar.

Result

Verified ✅ 2026-05-13.

Gotchas / known issues

  • Master changes don't auto-propagate to instances — hard refresh (Cmd+Shift+R) the consuming template after editing a master. Tracked as Phase 2.15.
  • Deleting a master leaves orphan instance nodes in templates — manually remove them from each template's Layers tree. Tracked as Phase 2.15.
  • Auto-upgrade on read can interfere with a saved master containing legacy feedConfig fields. Mitigated by always saving from the new Phase 2 path (current code). Tracked as Phase 2.15.

Step 4 — Create the Blog Index PageTemplate

Actions

  1. + New Template → Name Blog Index, Description Blog homepage, Page Type page.
  2. Set Preview Data: title: runevr Blog, metadata { "title": "runevr Blog", "tagline": "Stories tips and insights for film production teams" }.
  3. Insert → Components group → Site Navbar instance at root.
  4. Heading Stack — same composition as Step 2.2 (h1 bound to page.metadata.title, p bound to page.metadata.tagline, padding 80/24/40/24, max-width 1100, margin-x auto).
  5. Insert → Editor's picks (1 large) → same as Step 2.4.
  6. Insert → Latest grid → same as Step 2.5.

Result

Verified ✅ 2026-05-13.


Step 5 — Publish Blog Index v1.0.0

Actions

Same as Step 3, version 1.0.0.

Result

Verified ✅ 2026-05-13.

Note

After Step 3.5 + Step 4, the Blog Category template (template-72) was retroactively updated to use the Site Navbar Component instance. Re-published as v1.0.1 with changelog Replaced inlined navbar with Site Navbar Component instance for cross-template reuse.


Step 6 — Create the Blog Post PageTemplate

The biggest template. Decomposed into sub-steps.

Step 6.1 — Create empty template

+ New Template → Name Blog Post, Description Long-form blog post, Page Type page. Save.

Step 6.2 — Set Preview Data (rich)

Open 🎯 Preview data panel (bottom-left). Page title: The Hidden Cost of Disorganised Asset Pipelines. Page metadata:

{
  "title": "The Hidden Cost of Disorganised Asset Pipelines",
  "subtitle": "How small studios lose weeks per project to scattered files",
  "cover": "https://images.unsplash.com/photo-1574717024653-61fd2cf4d44d?w=1600&q=80",
  "author": "Snow White",
  "author_avatar": "",
  "published_at": "2026-05-08",
  "category": "Production",
  "reading_time": "8 min read"
}

Step 6.3 — Site Navbar Component instance

Click root → Insert → Components → Site Navbar. One node lands.

Step 6.4 — Hero section with bound background image

Authored from primitives:

  1. Insert Frame ("Hero"), size width fill / height Fit content (NOT fixed 480px — that broke Phone breakpoint; Fit lets the hero grow with title length). Position relative.
  2. Style → Background → Image URL → fx-toggle → page.metadata.cover. Size cover, position center.
  3. Insert child Frame ("Gradient overlay"). Position absolute → Stretch anchor (top/right/bottom/left = 0). Style → Background → Gradient → "+ Build a gradient" → direction to top, stop 1 rgba(15,23,42,0.8) at 0%, stop 2 transparent at 60%.
  4. Insert child Stack ("Hero content"). Position absolute → Bottom-Left anchor → fine-tune offsets to bottom 48px left 64px. Layout flex vertical, gap 12, align start. Width Fit content.
  5. Inside Hero content:
    • Text (span) — fx-toggle text → page.metadata.category. Style as chip: bg #ffffff, color #0f172a, padding 6/12/6/12, border-radius 999, font-size 11, weight 700, letter-spacing 0.08em, text-transform uppercase, line-height 1 (critical — otherwise the text sits low in the pill).
    • Text (h1) — fx-toggle → page.metadata.title. Size 56, weight 700, line-height 1.05, color #ffffff.
    • Stack (horizontal author cluster). Width Fit content. Layout flex horizontal, gap 8, align center. Children: 5 Text spans alternating bound name (page.metadata.author) / literal · / bound date (page.metadata.published_at) / literal · / bound reading-time (page.metadata.reading_time).

Result (6.1–6.4)

Verified ✅ 2026-05-13. Surfaced multiple UX gaps in the editor that were fixed before continuing — see "Phase 2.17 — Editor UX Overhaul" section below.

Phase 2.17 — Editor UX Overhaul (shipped during Step 6)

Major UX fixes landed mid-Step-6 to make the editor usable for designers:

  • Size mode dropdown (Fixed / Fill / Fit content / Percent) replaced the cryptic tiny <select>.
  • Position anchor picker — 3×3 grid + Stretch button. Click a cell to pre-fill the top/right/bottom/left offsets for absolute positioning. The four raw inputs remain editable below for fine-tuning.
  • Gradient builder — 8-direction picker (cardinal arrows), two color stops with position fields, live preview band, advanced raw-CSS escape hatch. The "None" preset is now a checkerboard with ⊘ icon (was a misleading white square).
  • Horizontal Stack default width = Fit content — fixes the bug where the Stack's DOM wrapper stretched to 100% of parent and made resize handles appear far from the visible content. Vertical Stacks still default to Fill.
  • Selection no longer shifts layout — removed the min-w/h: 8px injection on selected nodes; outline thickness is constant 1px across all states with a ring overlay for selected emphasis.

Gotchas

  • The Hero Frame should use Height: Fit content, not a fixed 480px. Fixed pixel height clips title overflow on Phone breakpoint.
  • The chip's vertical text alignment needs line-height: 1. Inherited 1.5 from typography defaults makes the glyph appear shifted down inside the padding.
  • Per-breakpoint values exist but aren't yet exposed cleanly in the inspector. For now author at Desktop, accept Phone/Tablet may need minor manual overrides post-Phase-2.17.

Step 6.5 — 3-column body grid

Below the hero, the post body lays out as 240px / 1fr / 280px columns. Sticky left rail, body slot in the center, sticky right rail.

Actions

  1. Click root → Insert → Grid. Rename "Body Grid".
  2. Style → Size: width Fill, height Fit, max-width 1280; margin-x auto; padding 64/24/64/24.
  3. Style → Layout: Type Grid. Columns input → toggle Advanced → type 240px minmax(0, 1fr) 280px. Gap 48. Align (rows) Start. Distribute (columns) Start.
  4. Insert three child Stacks inside Body Grid: "Left rail", "Body slot wrapper", "Right rail". Each width Fill, flex vertical, gap 32 (left/right) and 24 (body).

Result

Verified ✅ 2026-05-14.

Gotchas

  • The Grid layout inspector originally only exposed Columns/Rows/Gap. Align (rows) and Distribute (columns) were added during this step — Phase 2.17 follow-up.
  • The columns string 240px minmax(0, 1fr) 280px needs the Columns input's Advanced toggle (the default stepper only does equal 1fr 1fr ... patterns).

Step 6.6 — Left rail (share buttons + scroll-spy TOC)

Two sections inside the Left rail: a vertical share-button strip and a TOC repeater that lists h2/h3 headings from the body slot.

Actions

  1. Select Left rail → Style → Transform → Position Sticky. Top 96px.
  2. Share Buttons Stack (vertical, gap 12, align start): Text label "Share" + 3 Buttons (Twitter, LinkedIn, Copy Link). Each Button: width 100%, padding 8/12/8/12, bg transparent, Text Align Left (justify-content doesn't apply to Buttons since they aren't flex containers).
  3. TOC Stack (sibling): Text label "On this page" + a Repeater (Insert → Repeater).
  4. Select Repeater → Content tab → Source: query.pageHeadings (built-in query that returns h2/h3 nodes from the body slot).
  5. Inside the Repeater (now a container, Insert nests inside): add Button as the item template. Content → Text fx-toggle → loop.item.text. Link Target → External URL → fx-toggle → '#' + loop.item.anchor. Width 100%, Text Align Left, padding 6/0/6/0, color #64748b.

Result

Verified ✅ 2026-05-14.

Gotchas

  • Repeater is now a container — Insert nests inside it. Previously the new node landed as a sibling and the designer had to drag-fix in Layers. Phase 2.17 follow-up.
  • TOC active-state highlighting (scroll-spy) needs dynamicStyles per-row — inspector for dynamic styles isn't shipped yet. Tutorial leaves the TOC as plain links until that lands.
  • query.pageHeadings returns 0 items when the body slot has no content — the Repeater falls back to rendering its item-template ONCE unscoped, so loop.item.text resolves to null and the button renders empty. This populates correctly once Step 10's sample post fills the body.

Step 6.7 — Right rail (related posts + editor's picks)

Two stacked feed sections.

Actions

  1. Select Right rail → Position Sticky. Top 96px.
  2. Related Posts section: Text label + Insert Editor's picks (3 stacked) preset → Props → FEED SOURCE: Source Sibling pages (other posts in same category), uncheck Editor's picks only, Limit 5, Order Most recent.
  3. Editor's Picks section: Text label + Insert Editor's picks (3 stacked) preset → Props → FEED SOURCE: Source Specific page path /blog, Editor's picks only ON, Limit 4, Order Most recent.

Sticky won't work?

After authoring the Right rail's content, the rail may NOT stick on scroll. Cause: with align: start on the grid + an empty body slot (the center column has zero height), the grid row's total height equals the tallest rail. The Right rail itself fills the row, so it has no scroll-runway to stick within.

Fix

Select Body slot wrapper → Style → Size → Min Height: 2000px. This gives the grid row real height so both rails stick correctly. Once writers fill real body content (Step 10), the min-height becomes moot — real content exceeds it.

Result

Verified ✅ 2026-05-14.

Gotchas

  • The image starter inside feed-item templates was setting aspectRatio: "16/10" but the Image primitive's default size.height was fixed("300px") — height won. Fixed in the starter template to set size = { width: fill, height: fit, aspectRatio: "16/10" }. Existing dropped cards may still have the 300px height — select each cover Image and change Size → Height → Fit content.

Step 6.8 — Mark the body slot

The center column is the writer's space. Marking it as a slot locks everything outside (navbar, hero, rails) when a writer opens a post bound to this template — they can only edit content inside the slot.

Actions

  1. Select Body slot wrapper in Layers.
  2. Props tab → Slot section → click + Mark as template slot.
  3. Configure:
    • Id: body
    • Label: Post body
    • Fill mode: Stack — many blocks
    • Required: ✓
    • Allowed primitives: text, richtext, image, divider, list, button
  4. (Optional) Insert a placeholder Text inside the slot: Start writing here… — writers replace it.

The canvas should now show a dashed amber outline + 🔓 label badge "Post body · stack · 6 primitives · REQUIRED" framing the slot region. Faint when nothing's selected, prominent on hover/select.

Result

Verified ✅ 2026-05-14.

Gotchas

  • The slot chrome originally rendered against the wrong ancestor (a far-up positioned parent), framing the whole canvas instead of just the slot. Fixed by forcing position: relative on slotted nodes in buildInlineStyles. Phase 2.17 follow-up.
  • WYSIWYG pixel-parity bug discovered during this step: editor and preview rendered slot/body region at slightly different y positions. Cause: InsertGapList rendered h-0 atoms between flex children, but each atom still occupied a flex-item slot — flex gap was applied around them too, accumulating extra space. Editor mode showed N more gap-widths than preview. Fixed by suppressing InsertGap atoms when the parent has an explicit gap set. Designers now insert between gapped siblings via Layers context menu instead of hover-on-gap. Phase 2.17 follow-up.
  • The "Allowed Components" affordance (template-wide whitelist of CustomComponents writers can insert into slots) wasn't used in this tutorial — empty list = primitives-only, which is what runevr posts need. Revisit at Step 13 if writers want callouts / pull-quotes etc.

Step 7 — Publish Blog Post v1.0.0

Same flow as Step 3 / Step 5: Templates list → Blog Post card → Versions pill → +Publish → version pre-fills 1.0.0 → Publish version.

Result

Verified ✅ 2026-05-14.


Phase 2.17 cumulative shipped (mid-Step-6)

Editor UX gaps fixed before continuing the tutorial:

  • Size mode dropdown ("Fixed / Fill / Fit content / Percent") replaced the cryptic 1-2-letter <select>.
  • Position anchor picker — 3×3 anchor grid + Stretch button for absolute-positioned children. Click a cell to pre-fill top/right/bottom/left offsets.
  • Gradient builder — 8-direction picker + 2 color stops + live preview + raw-CSS escape hatch. "None" preset = checkerboard with ⊘ icon.
  • Horizontal Stack defaults to width: fit so wrapper hugs content instead of stretching to 100% of parent.
  • Selection no longer shifts layout — removed min-w/h injection on select; outline width constant 1px across all states.
  • Grid Align / Distribute dropdowns added (Layout section, grid type).
  • Repeater is a container — Insert nests inside it instead of as sibling.
  • Preview mode in template/component editor — built-in toggle "Preview ↔ Exit preview" since template editors don't have a dedicated /preview route.
  • Slot chrome anchors to the slot wrapper (forced position:relative); idle = faint outline; selected/hovered = prominent + label badge.
  • WYSIWYG pixel-parity — InsertGap atoms suppressed when parent has explicit gap, so editor and preview render identical content positions.
  • Template editor floating chips (🎯 Preview data / 🧩 Allowed components) moved past the sidebar so they don't overlap.

Step 8 — Build the page tree + bind each page to its template

Action

  1. Create the Blog page (project root):
    • Logo menu → Pages → + New page.
    • In the template picker: pick Blog Index (R) → enter title Blog, slug blog.
    • Submit. Page is created already bound to Blog Index in ref mode.
    • Open Page Settings → mark as Home page so /blog resolves correctly site-wide.
  2. Create category pages under Blog. For each (Production, Management, Development, Art, AI & Automation):
    • Right-click Blog in the page tree → + Add category (or +Add page if no category context-menu item).
    • Pick Blog Category (R) template.
    • Title Production (etc.). Slug production.
    • Mark settings.is_category: true in Page Settings → Settings JSON. (Tutorial Phase 2.21 will automate this via a template flag.)
  3. Create posts under categories (optional for tutorial; see Step 9 for the auto-bind flow that handles this).

Result

Verified ✅ 2026-05-14.

Gotchas

  • Backend default for ref-mode binding: was originally "ref-bind only when template has slots." Templates without slots (Blog Index, Blog Category) used to drop into snapshot mode → fully editable, no template_preview_metadata fallback. Fixed during this step: ref-bind whenever the template has a published version.
  • template_preview_metadata fallback: a freshly-created page bound to a template now inherits its preview metadata as default values for page.metadata.* bindings. Writer can override per-key by editing page settings.
  • Apply-template silent no-op: the template-update banner originally PATCHed template_version which is a read-only field on the serializer → no-op. Fixed to call the dedicated apply-template action which also invalidates caches.

Step 9 — Wire default_child_template (posts auto-bind to Blog Post)

Writers shouldn't have to pick a template every time they create a post. Configure the Blog Cat (R) template so any child page created under a Production / Management / etc. page automatically binds to Blog Post (R).

Actions

  1. Go to /w/<slug>/templates/.
  2. Click the Blog Cat (R) card → the edit form appears at top.
  3. Find the Default child template dropdown → pick Blog Post (R).
  4. Save.

Test the auto-bind

  1. Hover Production in the Pages tab → click the small + that appears.
  2. Confirmation modal appears: "This page will be created from Blog Post (R) (the default template for children of Production)."
  3. Click Create → enter title Test post → submit.
  4. The new page is auto-bound to Blog Post (R) in ref mode. Click it → full Blog Post template renders with sample data populated from template_preview_metadata.

Result

Verified ✅ 2026-05-14.

Gotchas

  • The Template Form originally didn't expose Default Child Template — added during this step.
  • /pages/new initially showed the full template picker even when a default child template existed. Fixed with a 4-state machine: resolving → confirm | picker → title. The confirmation modal lets the writer accept the default or open the full picker via "More templates…".
  • "Blank Page" sends content {} (truthy) which originally bypassed the parent-walk auto-resolve. Fixed: backend treats {} and { no root } as "no explicit content" so the parent-walk runs.
  • The default_child_template field cascades: a page bound to Blog Cat (R) (whose default_child_template is Blog Post) → child pages auto-bind to Blog Post. Two levels of walk work, but each is one step (no transitive cascade by default).

Phase 2.x cleanups identified during Steps 8-9 (tracked for after the tutorial)

Multiple platform UX gaps surfaced. None block the tutorial; all are tracked in the plan for focused cleanup after Step 14:

  • Phase 2.18 — Inline writer-side metadata editing (no more "open Page Settings → edit JSON").
  • Phase 2.19 — Template picker respects parent's default child template (skip picker, show confirm).
  • Phase 2.20 — "Available bindings" reference UI so writers see which page.metadata.* keys the bound template expects.
  • Phase 2.21 — Pages bound to a category-style template auto-flag is_category: true.
  • Phase 2.22 — Server-side renderer parity for ref-mode pages: preview/site/published path doesn't currently compose template + slot overrides + feeds. Critical for published pages.

Steps 10–14 — coming as we verify each one

The remaining steps are walked through interactively. As each step is confirmed working end-to-end in the live UI, it'll be appended here verbatim. Order:

  • Step 2 — Create Blog Category PageTemplate (canvas editor, build from primitives)
  • Step 3 — Publish Blog Category v1.0.0
  • Step 4 — Create Blog Index PageTemplate
  • Step 5 — Publish Blog Index v1.0.0
  • Step 6 — Create Blog Post PageTemplate (the biggest — hero + rails + TOC + slot)
  • Step 7 — Publish Blog Post v1.0.0
  • Step 8 — Build the page tree (Blog → 5 categories) and bind each via Apply Template
  • Step 9 — Wire child_template_rules so posts auto-bind to Blog Post
  • Step 10 — Author sample content (create a post in a category, fill the body slot)
  • Step 11 — Package the subtree as a SiteTemplate (right-click → Save subtree as Site Pack)
  • Step 12 — Verify reinstall in a fresh project
  • Step 13 — Writer workflow (invite a writer with can_create only, demonstrate the slot-locked surface)
  • Step 14 — Wire runevr.com/blog to the Pagenth public API

Each documented step uses this shape:

## Step N — <title>

### Actions
<click-by-click instructions>

### Verify
<what to check>

### Result
Verified ✅ <date>

### Gotchas
<edge cases, if any>