Is it possible to force a lineage?

jonnyp - November 8, 2009 - 10:10
Project:Hierarchical Select
Version:6.x-3.x-dev
Component:Code - Taxonomy
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Hi Wim,

Thanks for an excellent module, I'm very pleased with it.

I'm building a site with >1000 terms in a multi parent taxonomy. These terms are destinations, and to make them easy for users to find some fall under multiple parents - for example the mediterranean term shares child terms with Africa and Europe.

Users won't be adding or editing content, but I am providing a custom search form and using hs_taxonomy_form to provide the widget. The search box is displayed in a sidebar, and when viewing a /taxonomy/term/nnn page it inherits the term ID

I've found when I select a term manually the select follows the lineage or path I choose which is great, but understandably it gets confused when I visit a term with multiple lineages and I get a number of blank select boxes.

I'm not too fussy which lineage HS uses but it would be nice to only expose one - is it possible to ask it just to return the first possible lineage it finds?

Thanks,
Jonny

#1

Wim Leers - November 9, 2009 - 11:10
Status:active» postponed (maintainer needs more info)

I'm not entirely sure what you mean. Please:
1) ensure save_lineage is enabled
2) if that doesn't fix the problem, create a screencast to clarify the problem.

P.S.: don't have any screencast software yet? On Windows and Mac OS X, you can use the free Jing.

#2

jonnyp - November 18, 2009 - 04:53

Hi Wim,

In the end I realised using the Taxonomy left me with other issues too, so I knuckled down and eventually got the HS API to work after a few hours (I had a typo in my validation function name so spent about 5 hrs trying to work out why I could never get to the second level - d'oh!)

All is looking good now tho, so thanks again for a great module.
Cheers,
Jonny

#3

jonnyp - November 18, 2009 - 04:54
Status:postponed (maintainer needs more info)» closed
 
 

Drupal is a registered trademark of Dries Buytaert.