page-teasers: upgrade 'section' param from text to page field #89
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Cloonar/deckle#89
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What to build
Upgrade the
sectionparam ofscaffold/editor/elements/page-teasers.yamlfromtype: texttotype: page, so editors pick the section from the shared page-tree picker (same UX asnews-list.section) instead of typing a raw site-relative path.Stored values are already canonical pretty URLs (e.g.
/posts), so existing content must stay valid without migration. Do not restrictpageType:— any section-like page may be teased.Acceptance criteria
page-teasers.yamldeclaressectionastype: page(required, label unchanged in spirit)/posts) loads, validates, and publishes unchangedCheckPageParamsexistence validation passes for valid sections and rejects dangling pathsBlocked by
None - can start immediately
Triage confirmed — enhancement, ready-for-agent. The issue body is the authoritative agent brief.
Verified against the codebase:
page-teasers.yamlstill declaressectionastype: text; thepagefield type and shared page-tree picker landed with the news-list work (#86), so this follows an established pattern. Stored canonical pretty URLs make the no-migration criterion sound.