0

I have a content type call "procedure" and a taxonomy vocabulary call "services". I was able to build a block using Views that will show me all the related nodes sharing the same term from the vocabulary "services".

Now, I want to build a block showing "other procedures" that will list the nodes not sharing the same term, but having terms from the same vocabulary "services".

Note: in the first block I use the "Has term ID" argument and the "NID" argument.

I don't see how can I "negate" an argument. What am I missing?

4

I finally figured it out.

  1. Add the fields to your view (title, body, etc)

  2. add a relationship to "Taxonomy terms on the node" (do not check required)

  3. add the arguments (now contextual filters) the "Taxonomy term: Term ID" (use relationship)

  4. set "Provide default value" to "Taxonomy term ID from URL"

  5. uncheck (to save on the load, optional) "Load default filter from term page"

  6. check "Load default filter from node page, that's good for related taxonomy blocks"

  7. set the "Limit terms by vocabulary" and pick the vocabularies

  8. select "Filter to items that share any term"

  9. Scroll down to the "More" section and check "exclude" that way all TIDs will be shown, but the one on the argument.

Note: I also added the exclusion on the NID of the node where I am showing the block with the other related nodes tags with terms from the same vocabulary.

Thank you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.