Content blocks
The pieces of text and HTML that fill a page's slots — global chrome, zone chrome, per-page and per-URL blocks.
/content lists the blocks on the site. A block is HTML (or plain text) with a page and an anchor.
How a block finds its slot
When a URL renders, its layout's slots are filled from four places, in this order of specificity:
- The URL's own blocks — page = the path (
about), anchor = the slot. - The layout's blocks — page = the layout name.
- The zone's blocks — page =
PUBLIC,USERS,WEBSTORE…; the zone's header and footer live here. - Global blocks — page =
GLOBAL; the site-wide metas and footer.
So to change the footer everywhere, edit the global or zone footer block; to give one page a different intro, add a block with that page's path.
Writing a block
Plain HTML using the framework's classes. Widgets are placed with ((widget_name)) tags; the site's name and address with KreaStack-style placeholders. A block can be draft (not shown) or active.
Blog articles
An article is a URL tagged @blog whose main content is a block with the article's path. The article editor handles the pairing for you. See Blogs and articles.
Agents and the CMS
The create page tool an agent uses writes exactly these: a URL, a layout and blocks. Whatever an agent builds is editable here afterwards.