Breadcrumbs in webpage

Hello,

I try to understand how breadcrumbs work in website module.

I created a webpage with route “category/page”
Then I had a parent menu “category” in the navbar and a child entry with parent “category” and route “category/page”.

But there is no breadcrumbs on my webpage with route “http://localhost/category/page

Any help will be appreciate to understand the functional.

Thanks

Routes are just strings, so they are not hierarchical.

If you want to add breadcrumbs, add this to your context:

context.parents = [dict(route='/category', label='Categories')]

3 Likes

Thank you.

I’ll had a field in Web Page like in Web Form to manage breadcrumbs in desk UI, and send a PR.

Hi,

I 've just sent a PR to add context in WebPage doctype.
Thanks

https://github.com/frappe/frappe/pull/3588