Skip to main content

Module page_builder

Module page_builder 

Source
Expand description

Page-type field builder — UI-defined body schemas.

A Developer authors a page type’s body structure in a visual builder (fields, rows, groups, repeaters, flexible-content zones, reusable components); the published schema renders in the normal page editor for editors to fill per page. Schemas are versioned documents in a migration-tracked table — no DDL ever runs on builder save/delete; page values live in one stable JSON store and upgrade lazily (mirroring Block::version/migrate).

Storage models, the builder UI, the page-editor bridge, public render, UI-created types, and i18n live in the sibling modules.

Re-exports§

pub use compile::compile;
pub use compile::BodyItem;
pub use compile::CompiledSchema;
pub use compile::RuleBinding;
pub use compile::FIELD_PREFIX;
pub use db_type::DbSchemaPageType;
pub use db_type::DEFAULT_SCHEMA_TEMPLATE;
pub use dyn_block::resolve as resolve_block;
pub use dyn_block::DynBlockDef;
pub use dyn_block::DynBlockSet;
pub use model::Component;
pub use model::PageBuilderData;
pub use model::PageTypeSchema;
pub use schema::parse as parse_schema;
pub use schema::validate as validate_schema;
pub use schema::ComponentEntry;
pub use schema::Document;

Modules§

choice_i18n
Per-language labels for a page type’s choice options.
compile
Schema → runtime compilation. Turns a validated Document into the shapes the existing engines consume:
db_type
UI-created page-type fallback handler.
dyn_block
Dyn blocks — UI-defined field groups that flow through the existing Block machinery without inventory registration.
model
Page-builder storage models — migration-tracked, versioned.
schema
Page-builder schema document — the node tree a Developer authors in the visual builder, stored (versioned) per page type.
values
Page-value bridge — turns a compiled schema + a page’s stored values into editor HTML, and a posted form back into stored values.