I have a content type called "Results" that displays the results of a particular game. I am using the Hierarchical select module for my taxonomy terms that include Year, Game and League.

My goal is to create a view that only displays a Result content type that matches the terms selected in the exposed Hierarchical Select module. I currently have the view working, but it is displaying all the Results content type.

  • Drupal 6 views 6.x?
    – jan
    Jul 19 '11 at 17:56
  • Have u added the exposed filter using hierarchal select?
    – user842
    Jul 19 '11 at 18:03
  • Yes the filter is exposed. It displays what I have selected first, then all other Results content after that. I thought about limiting the display, but each game has a different number of results so that is not an option.
    – allnet0000
    Jul 19 '11 at 18:34

As far as drupal 6 views 6.x is concerned. You need to ensure you are saving the taxonomy heirarchy as additional terms in the database. Ensure also you are saving the entire lineage from the view. Finally Add a filter with Taxonomy: Term ID and leave this using default values.

(1) Ensuring you are saving the taxonomy heirarchy as additional terms:

-edit your "Results" content type, go to manage fields and edit the heirarchical field. Somewhere on this page you will see 'Save values additionally to the core taxonomy system (into the 'term_node' table).'

(2) Ensure you are saving the entire lineage:

-on the same page as above follow the link to oonfigure this heirarchical select on a separate window.. 'Due to limitations of CCK, there is a separate form to configure this Hierarchical Select widget's settings'

(3) Go back to views and add that filter I mentioned above.

  • Am I correct in assuming I need to enable the Hierarchical Select Content Taxonomy part of the module to do what you have listed above?
    – allnet0000
    Jul 19 '11 at 18:31
  • you are correct. BTW, is that a YEAR -> Game -> League structure? (League under Game under Year?)
    – jan
    Jul 19 '11 at 18:38
  • Yes that is the correct structure.
    – allnet0000
    Jul 19 '11 at 18:46
  • It's most probably because drupal cannot find references of these terms in the additional table relating to the node. As a result, it will show you all of them. You can verify this by looking at the term_node table.
    – jan
    Jul 19 '11 at 18:49
  • I am updating my content to include the Content Tax, I will let you know how it goes. Thank you.
    – allnet0000
    Jul 19 '11 at 19:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.