Why Blocks?
Standard ProcessWire templates and Repeaters give developers complete freedom, but scaling editorial landing pages across multiple teams introduces recurring friction: editors need visual live preview, designers need locked brand tokens and reusable sections, and engineers want strict placement rules and fast caching without maintaining custom SQL tables.
Blocks provides a governed, CSS-agnostic composition layer that preserves ProcessWire’s clean architecture.
Comparing Traditional Page Building vs trk/processwire-blocks
Section titled “Comparing Traditional Page Building vs trk/processwire-blocks”| Capability | Classic Templates & Repeaters | trk/processwire-blocks |
|---|---|---|
| Visual Authoring | Stacked form fields without live preview | Full-screen 3-Zone Visual Studio (Layers Tree, focused Inspector, Desktop / Tablet / Mobile ephemeral Live Preview) |
| Page Shell & Regions | Hardcoded PHP includes per template | Four scoped Layout systems: Template, Page (direct or rule-based), Global (header/footer), and Panel (megamenu, modal, drawer, sidebar) |
| Reusable Content | Manual copy-paste across pages | Centrally governed Reusable Blocks with cycle prevention, delete guards, Detach to Copy, and optional per-page Content Overrides |
| Design Governance | Unconstrained field values | Visual Block Presets (Snapshot & centrally synced Linked), 1:1 Block Defaults, shared _tokens.yaml, and declarative allowedParents / allowedChildren ontology |
| Dynamic Collections | Custom PHP loops in every template | Schema-driven Dynamic & Smart Content with type-safe field mapping, repeating item templates, signed /_blocks/smart pagination, and output dependencies |
| Multi-Runtime Delivery | PHP-only templates | Identical resolved tree across React 19 / Inertia v3 (OnceProp regions), native PHP (PhpBlockRenderer + keyed assets), and Headless JSON |
| Database Footprint | Extra Repeater templates and tables | Zero custom SQL tables (stored cleanly in hidden Entries blueprints) |