-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add breadcrumb in template #16
Comments
You can try with the globals variables of twig: #app/config/config.yml
twig:
globals:
breadcrumb_trail: "@apy_breadcrumb_trail" After that you can call the service inside twig template. {% app.breadcrumb_trail.add('404 page') %} |
Doing so ends up with this message:
Is the naming incorrect? |
Do you have more informations about the error because what you show me isn't very useful. |
Ok the following code works for me:
|
Thanks, that works great! |
I've add some doc about this. Thanks for the idea. |
I'm customizing the error template and want to add display a breadcrumb. Let's say for the 404-page, it should be:
Home > 404 page.
Is it possible to call your bundle in a template to add objects to the trail, if so, could you give an example?
The text was updated successfully, but these errors were encountered: