Modeling data

Reference for Pagelove's schema system — declaring governed types, enforcing shape, validating business rules, transforming values on the way in and out, and expressing required combinations across properties.

Pages in this group

Schema slots (default, @read, @write, @validate) and methods can be written in Sessel or JavaScript. The Sessel forms live here (Resolvers, Methods, defaults). For the JavaScript forms — and the DOM API they use — see the JavaScript → Server pages JavaScript in schemas and the JavaScript DOM API.

What modeling unlocks in pages

Composing a page needs no schema — templates, resource bindings, includes, and expression bindings work on plain HTML and the site graph (see Composing pages). Modeling a type adds capabilities a page can then use:

See also