library kunstmaan-system-pages-bundle
arsthanea/kunstmaan-system-pages-bundle
- Tuesday, September 13, 2016
- by mlebkowski
- Repository
- 4 Watchers
- 2 Stars
- 0 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 1 Forks
- 0 Open issues
- 2 Versions
- 0 % Grown
System Pages Bundle
Use dynamic content in your controllers. When defining a route, add _internal_name
:, (*1)
# 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., (*2)