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.
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.
Learn how to enable Sulu’s Headless API, expose JSON content for React/Vue frontends, and keep the Sulu admin UI while addressing the need to re‑implement Twig‑based presentation logic.
Sulu defines custom content types as XML page templates in config/templates/pages, not YAML. A worked blog_post example, cache-clearing steps, rendering, JSON options, and pitfalls.
Sulu's declarative webspace configuration lets one installation serve multiple brands and languages. Here's how portals, localizations, and fallback chains work — plus the honest trade-offs.
Learn how to manage content routing in Sulu CMS by choosing between standard page nodes and custom page types to balance editor flexibility and developer control.