Closed nkl90 closed 4 years ago
But default template do not support render of custom breadcrumbs namespaces.
Thanks for getting in touch, @nkl90. As this codebase is no longer maintained, I'd recommend opening your PR against this maintained fork: https://github.com/mhujer/BreadcrumbsBundle. Thanks again
Thanks for your reply!
In microdata.html.twig there is a check:
and in getBreadcrumbs() method of twig extension isset default value $namespace = Breadcrumbs::DEFAULT_NAMESPACE and this value is not transmitted in any way from wo_render_breadcrumbs({namespace: "my-namespace"}) function. Because of this, you will never get breadcrumbs from the custom namespace in default template.
I solved it this way:
You still accept pull requests in this repos?