Only to be sure that I'm not completely blind and dumb ...

I want to save nodes with their complete hierarchical taxonomy.

Example taxonomy terms / tree:
Cars
- Ford
- Renault
- VW
Bicycles
- Mountain bike
- Race bike

Now, if I choose 'Renault' - I want the term 'Cars' to be saved as well so that automatically, the node gets related with both terms ... Renault and Cars ... even if the user only selects 'Renault' when submitting the node_form.

Can this be done with any settings or modules - or do I have to write a function for this? This seems to be such a general thing, I can't imagine, nobody needed it before.

I've tried the modules taxonomy super select, hierarchical select vs. 5.x-2.2 and 5.x-3.0-rc1 and taxonomy_strider ... but for one or the other reason, neither is matching my needs or compatible with all my used and required modules.

Your help would be very appreciated ... (see the first line ;)

Thanks,
anschinsan

Comments

WorldFallz’s picture

http://drupal.org/project/hierarchical_select is really the best way to do this, and probably the future drupal way. I would recommend getting it working. What problems did you have with the module? Did you post in the issues queue?

===
"Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime."
-- Lao Tzu
"God helps those who help themselves." -- Benjamin Franklin
"Search is your best friend." -- Worldfallz

anschinsan’s picture

Hierarchical select 5.x-3.0-rc1 needs the actual JQuery Update to work while one of our other modules already in production needs an older version to work correctly. So we have to wait at least until the other module is updated.

Version 5.x-2.2 does display the values correctly - but doesn't save them. I could not get working multiple select - and found it not very confortable to select multiple values one by one. So I did not invest much work in the solution of the saving issue ... but wrote a little function instead to save the parents.

We have lots of modules enabled and I think it's a problem of compatibility between two of them ... as this problem is driving me mad, I decided to take a little rest and try it again in some days when I calmed down a bit. In the meantime, my function saves the values I need but I desperatly want to find a better solution! (Writing this I note, that 'calm down a bit' is still not achieved :)

Thanks for answering, though
Anschinsan

summit’s picture

Hi,

Off course Jquery 2 and HS are part of the solution for you I think. You can save lineages with HS.
I also have the save issue, see: http://drupal.org/node/276731#comment-921899.

But I am convinced this will be solved by the author of HS, which has an excellent issue-handling track record! So yes take a little rest and help us get HS working great!

greetings,
Martijn

WorldFallz’s picture

Yes, definitely take a break and regroup-- i find that helps alot.

What was the other module that requires the older version of jquery? Whenever I've encountered these I've usually managed to fix the problem with the jquery... i'd be happy to take a look.

===
"Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime."
-- Lao Tzu
"God helps those who help themselves." -- Benjamin Franklin
"Search is your best friend." -- Worldfallz