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_designcapability on that project (workspace owner / admin automatically has it). - A workspace selected in the workspace switcher matching the project.
Step 1 — Verify your access
- Open your project — URL
https://app.cms.local:3001/w/<your-project-slug>/. - Click the logo in the top-left of the sidebar to open the File menu.
- Under the Project section, confirm both items are visible:
- Templates (icon
❏) - Site Templates (icon
📦)
- Templates (icon
- Click Templates → page loads at
/w/<slug>/templates/. - 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
- Open
/w/<your-project-slug>/templates/. - Click the blue + New Template button (top-right).
- A form panel opens. Fill it:
- Name:
Blog Category - Description:
Category landing page — navbar + heading + post feeds. - Page Type: leave at
page(default)
- Name:
- Click Save.
- 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:
"You can't edit this template" even for the workspace owner who just created it. Root cause:
PageTemplateSerializer.get_can_editpassedproject=Noneso the project-scope cap branch couldn't resolve. Fixed by passingobj.projectinto the helper.Layers / Components / Assets / Logic tabs missing in the canvas editor, only Pages was shown. Root cause: the
AppSidebarisInCanvasEditorregex only recognised/design/and/components/<slug>/editpaths —/templates/<id>/editand/site-templates/<id>/editwere 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:
Style panel search crashed (
text.toLowerCase is not a function). Root cause: theBackgroundImageFieldLabel passes a JSX node astext(the fx-toggle row), butLabeltypedtext: stringand called.toLowerCase()directly. Fixed by wideningtexttoReact.ReactNodeand only applying the search-filter check whentypeof text === "string".fxfield crashed mid-typing on dotted paths (expected ident (at N)from the binding parser). Typingpage.metadata.titlepasses through invalid intermediates likepage.metadata.on its way to a valid expression, and each invalid keystroke threw out of the renderer. Fixed by wrappingevaluate()'s expression branch in a try/catch — partial expressions resolve tonulluntil they parse cleanly.
Step 2.2 — Add the heading section (page title + tagline)
Actions
- 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" }
- Page title:
- Click Insert → Stack.
- With the Stack selected, set Layout → direction
column, gap12px, padding64px 24px 32px 24px. - Inside the Stack, Insert → Text. Set tag to
h1. Click the fx toggle on the text field and enterpage.metadata.title. - Inside the same Stack, Insert → Text (leave tag as
p). fx-toggle the text field → enterpage.metadata.tagline. - 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.titleupdates the h1 live.
Result
Verified ✅ 2026-05-12.
Gotchas
- Bind the h1 to
page.metadata.title, notpage.title.page.titleexists on the model but is the slug/internal label — the human-facing title that the writer edits in Page Settings lives atpage.metadata.title. - The fx field crashed mid-typing on dotted paths (
expected ident (at N)) because the parser threw on intermediate states likepage.metadata.. Fixed — partial expressions now resolve tonulluntil they parse. - Style-panel search crashed (
text.toLowerCase is not a function) when theBackgroundImageLabel 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
- In Layers, click the root node (so the navbar inserts at the top level, not inside the heading Stack).
- Click Insert in the top toolbar → choose Category navbar.
- In Layers, drag the new navbar Stack so it sits above the heading Stack.
- With the navbar Stack selected, open the Props tab in the right panel. Under FEED SOURCE, pick Sibling pages.
- 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
- Open the Style tab and style the navbar Stack:
- Background:
#ffffff - Padding: Top
16, Right24, Bottom16, Left24 - Border-bottom:
1px solid #e2e8f0 - Gap:
8px
- Background:
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/$parentlingo 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
- In Layers, click the root node.
- Insert → Editor's picks (1 large) (under the Feeds group).
- In Layers a 3-node composition lands: outer Stack ("Hero") → Repeater → inner Stack ("Hero") with Image + Title + Excerpt children.
- 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
- Source:
- With the outer Stack selected, open Style tab and add padding
32 24(top/bottom 32, sides 24), max-width1100, margin-xauto.
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
srctoloop.item.cover_image_url. In placeholder mode (template editor with no bound page) that resolves tonulland 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
- In Layers, click root.
- Insert → Latest grid (under Feeds).
- Drag the new composition so it sits at the bottom of the page:
root → Navbar → Heading → Hero → Posts grid. - 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(or0for all) - Show "Load more": ON, Load increment:
9
- Source:
- Select the outer Grid (the wrapper around the Repeater). Style → Layout:
- Confirm Layout type is
grid, Columns stepper shows3, Gap16px.
- Confirm Layout type is
- 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).
- Max-width:
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
- From the template editor click Back → returns to
/w/<slug>/templates/. - On the Blog Category card, click the amber "Versions" pill (top-right of card body).
- The Versions panel expands. Click amber "+ Publish".
- Form opens with Version pre-filled (
1.0.0for first publish, next-patch bump otherwise). - Optional: Changelog field — fill with
Initial release. Category landing page with navbar, heading, editor's-pick hero, and posts grid. - 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
- Open the Blog Category template editor.
- 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.) - Select the outer Stack (the navbar wrapper) in Layers.
- In the floating action chip above the selection, click ★ Make Component.
- Fill the dialog: Name
Site Navbar, CategoryNavigation. Click through Review props (empty list is fine — bound fields skip prop extraction). Save. - The outer Stack collapses to a single Component instance node.
- Click the instance → Props tab → ↗ Edit master → confirm the tree.
- 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
feedConfigfields. 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
- + New Template → Name
Blog Index, DescriptionBlog homepage, Page Typepage. - Set Preview Data:
title: runevr Blog, metadata{ "title": "runevr Blog", "tagline": "Stories tips and insights for film production teams" }. - Insert → Components group → Site Navbar instance at root.
- Heading Stack — same composition as Step 2.2 (h1 bound to
page.metadata.title, p bound topage.metadata.tagline, padding 80/24/40/24, max-width 1100, margin-x auto). - Insert → Editor's picks (1 large) → same as Step 2.4.
- 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:
- 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.
- Style → Background → Image URL → fx-toggle →
page.metadata.cover. Size cover, position center. - Insert child Frame ("Gradient overlay"). Position absolute → Stretch anchor (top/right/bottom/left = 0). Style → Background → Gradient → "+ Build a gradient" → direction
to top, stop 1rgba(15,23,42,0.8)at 0%, stop 2transparentat 60%. - Insert child Stack ("Hero content"). Position absolute → Bottom-Left anchor → fine-tune offsets to bottom
48pxleft64px. Layout flex vertical, gap 12, alignstart. WidthFit content. - 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).
- Text (span) — fx-toggle text →
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: 8pxinjection 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
- Click root → Insert → Grid. Rename "Body Grid".
- Style → Size: width Fill, height Fit, max-width 1280; margin-x
auto; padding 64/24/64/24. - Style → Layout: Type Grid. Columns input → toggle Advanced → type
240px minmax(0, 1fr) 280px. Gap 48. Align (rows)Start. Distribute (columns)Start. - 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) 280pxneeds the Columns input's Advanced toggle (the default stepper only does equal1fr 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
- Select Left rail → Style → Transform → Position
Sticky. Top96px. - 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).
- TOC Stack (sibling): Text label "On this page" + a Repeater (Insert → Repeater).
- Select Repeater → Content tab → Source:
query.pageHeadings(built-in query that returns h2/h3 nodes from the body slot). - 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
dynamicStylesper-row — inspector for dynamic styles isn't shipped yet. Tutorial leaves the TOC as plain links until that lands. query.pageHeadingsreturns 0 items when the body slot has no content — the Repeater falls back to rendering its item-template ONCE unscoped, soloop.item.textresolves 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
- Select Right rail → Position
Sticky. Top96px. - 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.
- 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 defaultsize.heightwasfixed("300px")— height won. Fixed in the starter template to setsize = { 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
- Select Body slot wrapper in Layers.
- Props tab → Slot section → click + Mark as template slot.
- Configure:
- Id:
body - Label:
Post body - Fill mode:
Stack — many blocks - Required: ✓
- Allowed primitives:
text, richtext, image, divider, list, button
- Id:
- (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: relativeon slotted nodes inbuildInlineStyles. 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:
InsertGapListrendered h-0 atoms between flex children, but each atom still occupied a flex-item slot — flexgapwas 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 explicitgapset. 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
- Create the Blog page (project root):
- Logo menu → Pages → + New page.
- In the template picker: pick Blog Index (R) → enter title
Blog, slugblog. - Submit. Page is created already bound to Blog Index in ref mode.
- Open Page Settings → mark as Home page so
/blogresolves correctly site-wide.
- 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.). Slugproduction. - Mark
settings.is_category: truein Page Settings → Settings JSON. (Tutorial Phase 2.21 will automate this via a template flag.)
- 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_metadatafallback: a freshly-created page bound to a template now inherits its preview metadata as default values forpage.metadata.*bindings. Writer can override per-key by editing page settings.- Apply-template silent no-op: the template-update banner originally PATCHed
template_versionwhich 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
- Go to
/w/<slug>/templates/. - Click the Blog Cat (R) card → the edit form appears at top.
- Find the Default child template dropdown → pick Blog Post (R).
- Save.
Test the auto-bind
- Hover Production in the Pages tab → click the small + that appears.
- Confirmation modal appears: "This page will be created from Blog Post (R) (the default template for children of Production)."
- Click Create → enter title
Test post→ submit. - 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/newinitially 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_templatefield 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_rulesso 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_createonly, demonstrate the slot-locked surface) - Step 14 — Wire
runevr.com/blogto 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>