I made my site using pages mostly and the node hierarchy module. So each primary link has children created by the node hierarchy module. I tried setting up a bread crumb that goes parent > child or just parent when their is no child. But I can't get anything to work. I can only get it to print out the title as a crumb. I don't know why.
I have been trying [title-raw] /
| [fullhierarchytitlepath] But if I'm on a child node, I don't get the parent listed even though the token says I should be able to. I don't know what I am doing wrong.
You can see my site here: beta. wimaxforum.org. If you click on About you get the title in the breadcrumb and if you click on a child link such as 'vision and mission' (some pages in this menu are views) you get just the title of vision and missions and not
About > Vision and mission
I am totally flummoxed. I have tried lots of different combos and nothing works.
Comments
Comment #1
beckyjohnson commentedThe breadcrumbs are on the bottom of the page btw, in our lowerthird area.
Comment #2
beckyjohnson commentedSo this is what I have so far
Titles:
[hierarchyparenttitle-raw]
[title-raw]
Path
|[hierarchypath]This is ok but it doesn't go very deep into the menu structure. So for example, showing one page, a parent page, I get the breadcrumb Resources. For a one parent/ one child combo I get Resources > Wimax-ITU for the third though, parent /child/ descendant of child I only get the child/descendant combo to show up. I never does the full path right, Resources > WiMAX-ITU> child of WiMAX-ITU.
Any suggestions?
Comment #3
MGN commentedSorry, I am not sure how these node hierarchy tokens work so I can't offer too much assistance here. these questions might receive better answers from the node hierarchy issue queue.
Which version of node hierarchy are you using? Browsing through the (6.x-1.x) code, it seems that that module should set the breadcrumb according to the node hierarchy (through the nodehierarchy_set_breadcrumbs function called during hook_nodeapi view operation). If this is the case, then you don't need custom breadcrumbs to do this...
Otherwise, the only way that I can think to do what you are asking (within custom breadcrumbs) is to write a php snippet to generate each item in the breadcrumb by using the node hierarchy data - much like the code in nodehierarchy_set_breadcrumbs. Note that this is an expensive operation, because all of the parent nodes are loaded, just to generate the breadcrumb.
I am moving this to node hierarchy to see if the maintainers can help with this...Again, I am not sure of the version, so please correct that as needed.
Comment #4
ronan commented@MGN is right. Node hierarchy set's the breadcrumbs to the hierarchical path out of the box in all versions. You shouldn't need custom breadcrumbs if that's all you're looking for. If you are using custom breadcrumbs for other parts of your site and need to keep it enabled, see if you can turn it off for the content types that node hierarchy is used on and let node hierarchy control the breadcrumbs for those nodes.
Hope this helps.