Posted by tomgf on March 16, 2011 at 9:19pm
2 followers
Jump to:
| Project: | Custom Breadcrumbs |
| Version: | 7.x-1.0-alpha1 |
| Component: | custom_breadcrumbs |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
I am trying to change the visibility of a custom breadcrumb according to the menu level of the node but I can't access $node->menu… (I guess it's not set at the evaluation time).
Is there any way –that I'm not thinking of– to achieve this and have “Breadcrumb A” if menu depth is two and “Breadcrumb B” if menu depth is three?
Comments
#1
Just to confirm that I see the same thing. $node->menu doesn't seem to be defined in hook_node_view. Sorry I don't have an alternative right now, but if I come up with something I'll let you know...