Hi there,

First up, heres my system info:

drupal: 5.1
php: 4.3.9
mysql: 4.1.9
modules loaded: taxonomy_breadcrumb, cck, core
taxonomy_breadcrumb: 1.5.2.9

And heres an example of the taxonomy I have set up, it is a simple, single parent hiearchy:

Resources (Vocab)
-- Links
-- Guides
-- -- Medical Guides
-- Records

I have a node (called ie node/7 title of 'Septic Shock', of type Guide_Page (simple cck node type), it is related to the term "Medical Guides", and published.

When I view the node, the breadcrumb is "Home > Resources > Guides", this is correct and fantastic (Show current term is disabled), however, when I edit the node, the breadcrumb goes back to "Home" and that's it.

I realise that if the node didn't have a taxonomy term related, this would be the correct behaviour, as no taxonomy = no breadcrumb. However, when the node is already joined to a taxonomy I would expect it to reflect this on the edit screen breadcrumb too (In case I wanted to back up through my site). IE when I click edit I would expect the breadcrumb to still be "Home > Resources > Guides" ("Home > Resources > Guides > Medical Guides" would be more accurate, but probably harder to achieve).

Obviously, as I am editing the node, there is no guarantee that it will stay in the taxonomy term, but until I click 'Save Node' the node still is a member of its original taxonomy, so the breadcrumb would be accurate, obviously, after I click 'Save Node' the node is displayed and (if I edited the taxonomy of the node) the new taxonomy path would be displayed.

Is there any way I can achieve this?

I have logged this as a bug as I don't know what the behaviour by design is, but this functionality would make excellent value for the module and makes more sense (to me!! IMHO). And I definitely would like to incorporate it, so any advise would be grand!

Thanks in advance for any advise!

ZuluWarrior

Comments

_craig’s picture

Status: Active » Closed (won't fix)

Thanks for your feedback. Your observations are correct.

when I edit the node, the breadcrumb goes back to "Home" and that's it.

At one point I considered adding this feature, but couldn't find or justify spending the time on it. I didn't think it would add a lot since a breadcrumb does not make sense for new nodes. However, you are correct in saying it would make sense for existing nodes that are editable. Nevertheless, I'd be happy to review and consider a patch.

ZuluWarrior’s picture

Hi Craig,

Sorry for the double post, I see you've closed the other post, so we'll continue this here.

I think we should try and create this patch, I don't think it would be a major re-working. I'd be happy to help where I can, but I have to appreciate the project deadline and amount of work left!

Did you want me to have a go at a patch, or are you gonna have a pop at it? If you want me to have a go, as you say you've thought about this before, could you possibly give up some clues or thoughts on the best/easiest way to implement, even whereabouts in your module to be looking would be grand...

Of course, if you are gonna have a pop at the patch, let me know and I'll test it out and help as much as possible....