arsthanea / kunstmaan-system-pages-bundle
0.1
2015-10-23 13:20 UTC
Requires
- kunstmaan/bundles-cms: ~3.0
This package is not auto-updated.
Last update: 2024-11-09 19:38:09 UTC
README
Use dynamic content in your controllers. When defining a route, add _internal_name
:
# routing.yml
my_static_route:
path: /example
controller: …
defaults:
_internal_name: example_page
If you publish a page with internal name equal to example_page, it will be available in $request->attributes
and in twig:
page
and nodetranslation
. Standard Kunstmaan CMS functions (titles, breadcrumbs, metadata) should work out of the box.