Hi,
I have a strange breadcrumb request to deal with. Given a menu structure like this:
Landing page 1
Submenu L1
Submenu L2
Another L1 Submenu
Landing page 2
Submenu L1
Submenu L2
Submenu L2
Submenu L1
Submenu L2
Submenu L2
Submenu L2
Every Submenu L2 page shows a menu block from a different menu, but they are showing the same menu block. Like:
Navigation 1
Navigation 2
Navigation 3
I want to show a strange breadcrumb on Navigation X pages. So when you click Navigation 1 from a Submenu L2 page, it should display this:
Landing page 1 > Submenu L1 > Submenu L2 > Navigation 1
Or this, depend on the previous page:
Landing page 1 > Another L1 Submenu > Another Submenu L2 > Navigation 1
Note Navigation 1 is not part of the previous menu, but because the user is coming from that menu structure, I would display that breadcrumb.
I'm thinking about passing the parent by URL, like: www.domain.com/pathalias?breadcrumbparent=1234 This can be done in a hook_link with a condition if it's a menu block and the current page is an L2 menu page.
Any other ideas?