Community & Support

CCK Node Reference Argument Used To Filter Views

Views 5.x-1.6 / Drupal 5.12 / CCK 5.x-1.10

I have two types of CCK records -- one being a more general description, the other providing more detail on various aspects of the general topic. I.e.:
CCK content type 'rock' holds information about the music style in general and refers to another CCK content type 'artist' where details are given to the various bands and musicians.
Taxonomy has a vocabulary which lists terms to classify musicians: 'singer', 'drums', 'band', etc.

I set up a views view 'details' to show the details to any given style in a block beneath the general overview. I.e. when I select "bands" from the menu, I get the general page about rock'n'roll and a list from views with all entries in the musician record. Not quite what I want, I have to add a filter.

I set up an argument in the node reference field "bands" to be passed to the view 'details' -- but I can't figure how (or what) to insert in the "arguments" section (or argument handling code) to filter the view by the passed taxonomy term…

I found a lot of hints to the problem, but so far nothing worked for me -- thanks for filling me in…

Comments

More details

Maybe it's of importance:

If I add a filter "term is one of" "bands", I get the desired list as desired. But that would require me to have as many different views as I got terms in that vocabulary -- passing the proper term from the node reference field and setting up a dynamic filter in views would be much easier to handle…

Norbert

-- form follows function

nobody click here