Responsive images in Contao from a single upload
Define Contao image sizes once and render <picture> markup with WebP fallbacks from one high-resolution upload.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
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.
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.
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.
Contao lets you build multilingual sites by duplicating pages or using language fallback. Learn how to enable fallback, when it’s safe, and the trade‑offs between duplicating pages and translating only what matters.
Contao’s Form Generator lets you create conditional fields and enforce server‑side validation without custom code. Follow this guide to set up a dropdown‑triggered field, verify frontend and backend behavior, and understand the trade‑offs.