By newindrupal on
Read a lot of articles, bet still cannot figure, how to make Views based on different 2 vocabularies with Drupal 7? Something like /page/term1/term2 (using aliases)
Will be grateful for any tips
Read a lot of articles, bet still cannot figure, how to make Views based on different 2 vocabularies with Drupal 7? Something like /page/term1/term2 (using aliases)
Will be grateful for any tips
Comments
Why use 2 different vocabularies
Why not use a hierarchical vocabulary?
View Arguments
Not sure what exactly you are looking for or your abilities. You known that in a view you can add URL arguments under the "Arguments" section? This is where you would add a taxonomy term as an argument.
If you really want you can add two taxonomy term arguments in a row. Both will be simply searching through all possible terms. NOTE that you can also pass multiple term arguments as
term1+term2. This is a selectable option when defining the view argument.I can provide a step by step tutorial if needed.
What i am looking for, is to
What i am looking for, is to have 2 terms from separate vocabularies on each node type. For example, so you could choose all nodes with a term 'museums' to see all museums and then choose a city (2nd vocabulary), to see all museums in a certain city.
So hierarchical vocabulary is not really an option.
My abilities: Drupal newbie, can do some php.
I managed to get it working using term id's as page/1+2 , but not for page/termalias1+termalias1. Is is some kind of pathauto or views issue?
If you have a tutorial, will be interested to read it.
Clarification
Ok you got arguments working which is good. I suspect you specified a "Taxonomy: Term ID" as the argument rather than the "Taxonomy: Term" as the argument in your view. Hence why it only works as page/1+2 and not as page/term1+term2
_
Please don't post duplicate threads. I've deleted the dupe, thanks.