6
votes

Good Morning,

I am developing an website and i am in a struggle to resolve this:

I have a link like this: mywebsite.com/aliments/fruit/banana.

And in a View that creates the page aliments i want only to show terms with fruit and banana checked at the same time.

My taxonomy terms are like this way:

Fruit

-Banana

-Apple

Fish

-Sardine

And so on...

So i have the tag Fruit and banana checked at the same time.

Some how i can't do it, if someone can help me.

Thanks, Pedro Dias

2

2 Answers

4
votes

From the manage view page, go to section Filter criteria and click Add.

Then choose Content: Has taxonomy term and choose the vocabulary and the both terms you wanna use.

Hope this helps... Muhammad.

3
votes

You can perform Validation on a Taxonomy Argument (Contextual Filter) to make sure it is part of a Vocabulary.

I would make the path of the view Ailments/Fruit/%

If you have other Vocabularies, make each one Ailments/Foo/% and Ailments/Bar/%

You can use the views Displays to share some of the features between all these views if you need to.