So I have a View page that I'm showing under 2 parent item nav elements in my Nice Menus. So it shows as a page under 2 sections of the site. I have the Custom breadcrumb set and working for it under one of the sections. But the link to it from the 2nd section uses the 1st breadcrumb. Is there a PHP snippet to make it show its specific section breadcrumb conditional based on the section the user is viewing it in.
Currently I've configured it as a View breadcrumb with the following specs:
Titles:
About
Find a Member
Paths:
content/about
So this is the configuration if it's under the About Section of the site. I also want it in the Members section of the site and using that specific breadcrumb path.
Suggestions?
Thanks,
backdrifting
Comments
Comment #1
MGN commentedCreate two custom breadcrumbs for the same view, each modified as you need for the two sections. Then add a php snippet in the breadcrumb visibility section to determine whether or not to show the breadcrumb. For example, you might write a snippet that checks the path and return TRUE if it is the appropriate breadcrumb for that path, and FALSE otherwise.
Comment #2
MGN commentedMarking this as fixed since the question has been answered. Go ahead and change the status if you have additional questions on this.