Posted by Berni86 on December 16, 2012 at 4:10pm
Hello, I have a taxonomy with a menu of 250 items, and I want to create a view for each, if for example I have the menu:
-Books
--Child
---Literature
--Adult
---Terror
---Action
I want a view that shows only one of these, a view that contains all the '-Books', one containing only the books '--Child/Literature', the other containing only books '---Literature'.... so with all menu items.
My question is: I have to create a view for each object, a total of 250 views? or is there a form to generate a single view that depending on the taxonomy term that accesses I filter the results and only show the taxonomy data accessed, accessing terror, to show only the books ---Terror.
Thank you very much!
Comments
This is done with Contextual
This is done with Contextual Filters in views.
More info here and here.
Contextual filters can take a bit for some users to figure out, but it saves a ton of time in the long run!
The path taxonomy/term/{tid}
The path taxonomy/term/{tid} where {tid} is the taxonomy term id will list all the content with that term. Views includes a view that if enable will override this path.
Note unless you are using a module like hierarchical select which can save term lineage or selecting multiple terms, content saved with the term 'Literature' is not tagged 'Child'.