Skip to content

Introduction

Blocks (trk/processwire-blocks) is a structured page and layout composition engine for ProcessWire 3 ($this->wire()->blocks). It pairs declarative YAML block blueprints in site/blocks/ with a full-screen 3-Zone Visual Studio (Layers Tree, focused Inspector, and responsive Desktop / Tablet / Mobile live preview), rendering consistently across React 19 / Inertia v3, native PHP templates, and headless JSON endpoints with zero custom SQL tables.

The full-screen 3-Zone Visual Studio combines a WAI-ARIA Layers Tree, focused Inspector, and zero-DB-write responsive Live Preview.

Four Scoped Layout Systems

Govern page shells with Template Layouts (1:1 per template), Page Layouts (direct or rule-based), Global Layouts (header and footer regions), and Panel Layouts (mega-menus, modals, drawers, sidebars).

Reusable Blocks, Presets & Defaults

Author centrally governed Reusable Blocks with optional per-page Content Overrides, apply Snapshot or synced Linked Presets, and configure 1:1 project-wide Block Defaults.

Dynamic, Smart & Dependent Blocks

Bind single blocks or repeating item templates to ProcessWire Pages and Entries via type-safe field mapping, signed /_blocks/smart pagination, and output-based _blocks_depends_on pruning.

Dual-Runtime & Tag-Indexed Caching

Deliver the exact same block tree through React 19 / Inertia v3 (OnceProp shared regions), native PHP templates (PhpBlockRenderer + keyed per-block assets), and Headless JSON with surgical BlockCacheManager tags.

Next steps