I've been searching the site to find a snippet I can use but I'm not having any luck. I apologize if this ends up being something obvious and well documented that I have overlooked.

Here's what I'm trying to accomplish: I have two content types, "Topic" and "Resource". On the Topic pages I have a view (block) that displays Resources that have the same Taxonomy term. In views I have setup an argument to handle this display using an argument. This works as expected, except, both the Topic and Resource content types have a second taxonomy vocabulary that seems to be included with this argument. This is actually making the view not work the way I intended.

So now, I'm trying to find a way to create an argument that will ignore all vocabularies but the one used for association of the two content types.

Does anyone have an example snippet I could use. OR a better way to build this view?

Thank you for the help.

Comments

dawehner’s picture

Status: Active » Postponed (maintainer needs more info)

You don't even need some sql because you can set up a validation and validate by the vocabulary.
Therefore click on the argument and search for validation.

Please always set up the right version if you create a issue.

esmerel’s picture

Status: Postponed (maintainer needs more info) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.