Decoupling Logic from Markup: Implementing Fluid Templates in Contao
Learn how to use the Fluid templating engine in Contao to separate business logic from HTML, utilizing template inheritance and partials for maintainable code.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn how to use the Fluid templating engine in Contao to separate business logic from HTML, utilizing template inheritance and partials for maintainable code.
Diagnose Contao list and news module pagination failures: page-2 404s, repeated page 1, and disappearing links, with ordered checks and version-safe fixes.
Diagnostic guide for Contao 4.x/5.x cache failures: stale frontend output, missing template changes, or cache:clear not reflecting updates. Covers Symfony, Contao, OPcache, HTTP cache/Varnish, Doctrine metadata, and asset fingerprinting with ordered checks and fixes.
Define Contao image sizes once and render <picture> markup with WebP fallbacks from one high-resolution upload.
Learn how to override Contao’s core templates by copying them into your theme’s /templates folder, allowing safe customizations that survive updates.
Register custom PHP classes at Contao extension points so core files stay untouched during updates.
Configure language roots and page languages in Contao 4.x/5.x, then verify frontend fallback when a translation is unpublished or missing.
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.
Add custom fields to tl_page or other Contao tables using DCA without editing core files, then verify the change in the backend.