Hello,

Firstly, sorry for my bad english :'(

I use leaflet map for displaying markers, like that :

My actual view - filter criteria :

- Content published
AND
- Content - Has taxonomy term AND
- Content - Has taxonomy term AND
AND
Content type = 1 OR
Content type = 2

But now, I want display vectors with a third content type (no dependant to taxonomy). It only works without filters... and add all taxonomy terms to my third content, it's an ugly solution.

Do you have a solution ?
Use custom SQL query ?

Thanks

Comments

yaten’s picture

Anyone ? :'(

Kimeros’s picture

Have you tried creating a new filter group and using OR?

So in your view click on the drop down arrow next to Add. That will give you an option "Add/Or, Rearrange". Click on "Add/Or, Rearrange" and then click on the option to "Create new filter group".

So for instance in one filter group you could have:

1st filter group
Content: Published = Yes

AND

2nd filter group
Taxonomy term is term one or term 2
OR
content type is content type you want.

yaten’s picture

Thank for your answer, I try this solution : Screenshot - views , but drupal doesn't understand this setup (don't saving correctly) .

Add "And/or groups" in "And/or groups", isn't possible ?