Issue 884
Editor-adjustable page layout: a Section container, the Map block inside it, About page first
Back to our planDone
enhancementfrontendcmspriority: high
Problem
Page layout is fixed in code. The Content block only offers a column width, and the Map block has its own hard-coded arrangement, so moving, aligning or resizing a section means a pull request and a deploy. The owner wants every layout change to be a quick edit in Admin, by a person or by an AI agent through the CMS, with no deploy.
Proposed fix
Build the layout properly with Payload's native layout-builder pattern, in this order (native first, then plugins, then our code):
- A Section container block: width, alignment, position, spacing and column span as plain fields, able to hold other blocks so editors can nest and reorder them. Form-based in Admin (no drag-and-drop canvas); every choice is a plain field, so an AI agent can edit it too.
- The Map block becomes an ordinary block that sits inside a Section and follows the same controls, with no fixed grid of its own.
- The About page is the first page built this way. Other pages follow later, in their own issues.
- Before writing custom code, record on this issue what native Payload offers for this and whether any vetted, maintained plugin fits (visual builders exist but are small and would replace how pages are built).
Acceptance criteria
- An editor can change a section's width, alignment, position and order in Admin, and the live page changes with no code change and no deploy.
- The Map block can sit inside a Section and follows its controls; it still opens the live map on tap and still works with the picture and text only.
- The About page uses it, looks right at the six widths in light and dark, and keeps the mobile order (picture above text on phones).
- Layout fields are plain, typed props through the mappers, tested, with the component and docs updated.
- The knowledge notes and generated reference describe the new block.
Open questions
- A drag-and-drop canvas is out of scope for now; the owner prefers form-based, AI-friendly layout fields.
Follows from #764 (the About page map).
Generated by Claude Code, opens in a new tab