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.
Define Contao image sizes once and render <picture> markup with WebP fallbacks from one high-resolution upload.
Decision guide for Contao 4.9–5.x: why new projects should use Twig, how to migrate legacy PHP templates incrementally, and a concrete validation checklist with commands and caveats.
When Contao projects grow, mixing PHP and HTML in templates creates maintenance debt. This architecture note explains how Twig enforces boundaries, the smallest safe override, and how to verify cache and debug behavior.
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.
Decide between Symfony's global form themes and manual Twig rendering to balance development speed with design precision. Learn how to override blocks for consistent UI.
Learn how to add metadata to Contao pages without touching the core database, see a step‑by‑step example, and understand the trade‑offs of using Custom Fields.
Learn how to create reusable, decoupled page layouts in Contao 5 using Twig templates, block overrides, and the Page ‘Template’ field. A step‑by‑step example shows how to assign a custom template, verify it renders correctly, and avoid common pitfalls.