Mapping Sulu Page Templates to Controllers and Twig for Localized Rendering
Learn how Sulu maps page templates to Twig files and optional controllers, and verify the routing for multi-locale sites with a concrete landing-page example.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn how Sulu maps page templates to Twig files and optional controllers, and verify the routing for multi-locale sites with a concrete landing-page example.
Block content created in Sulu admin not appearing in frontend Twig templates. Follow this diagnostic guide to identify missing rendering tags, name mismatches, cache issues, and configuration problems.
Learn how to add a reusable callout block to Sulu CMS by creating a PHP block class, a Twig template, and registering it with Sulu—so editors can drop it into any zone without touching layout files.
Sulu's restore button doesn't touch the live site — it rebuilds your draft from an old version. Here's the two-step rollback, its limits, and how to drill it before an incident.
Sulu's block system lets developers define reusable, type-safe components while editors compose pages by drag-and-drop. Learn how to register custom blocks, restrict types per zone, and avoid common pitfalls like cache misses and translation gaps.
Sulu keeps draft edits separate from published pages in its PHPCR repository. Learn how to publish, revert, and check cache behavior without exposing unfinished content.
Sulu zones let editors compose flexible page regions, but unbounded nesting and vague block definitions create Twig complexity and inconsistent layouts. Learn how to define zones deliberately, map custom blocks to templates, and verify the result.
Sulu’s Content Types can be defined in YAML, giving teams version control, auditability, and CI/CD speed. Learn how to write a YAML schema, generate migrations, and avoid sync pitfalls with a concrete example.
A task guide to registering a Sulu Smart Content data provider that exposes Doctrine ORM entities to templates, with SQL pagination and admin-facing configuration.