Kevin Papst
Kevin Papst
Thanks for sharing this! I will keep this here and make the post sticky, as it contains important infos which are not yet in the documentation. The docs are meant...
Its up to you what you display in the breadcrumb: https://github.com/kevinpapst/AdminLTEBundle/blob/master/Resources/docs/breadcrumbs.md You don't have to use the same source for `SidebarMenuEvent::class` and `BreadcrumbMenuEvent::class`
The demo app https://github.com/kevinpapst/AdminLTEBundle-Demo has a KNP mode as well. Simply switch this to true: https://github.com/kevinpapst/AdminLTEBundle-Demo/blob/master/config/packages/admint_lte.yaml#L41
Thats because you set it to `true` which means "re-use the main menu for the breadcrumb, see https://github.com/kevinpapst/AdminLTEBundle/blob/master/Resources/views/Breadcrumb/knp-breadcrumb.html.twig#L5 Switch `breadcrumb_menu: true` to `breadcrumb_menu: my_breadcrumb_menu`, see https://github.com/kevinpapst/AdminLTEBundle/blob/master/Resources/docs/knp_menu.md#enabling-breadcrumb-support
Maybe I don't understand your use case. Maybe you just want to overwrite the breadcrumb menu template. Maybe you want to add/use a feature that does not yet exist. If...
Yeah, not sure about that. As I said: never used it like this by myself. So in order to find an answer I would have to debug as well, but...
You get the request like this: ``` public function __construct(RequestStack $requestStack) { $this->request = $requestStack->getCurrentRequest(); } ```
Thanks for sharing, I leave this issue open in case someone else needs a solution. As said before: I haven't used the KNP Menu. If you think the translation must...
Thank you @loicallsoftware 👍 At a first glance this looks good, but ... please add some docs for the next user: https://github.com/kevinpapst/AdminLTEBundle/blob/master/Resources/docs/bundle_options.md https://github.com/kevinpapst/AdminLTEBundle/blob/master/Resources/docs/layout.md#layout-blocks then I will give it a try.
Sure you can and you did with your last push 👍