0

I have a Taxonomy field on a Node. In the display of the node, I'd like a list of links to other related nodes, not a link to the Taxonomy category.

Is it best to build or find a formatter that can do this?

enter image description here

Or, is it best to make a View, and if so, what is the proper way to enforce the relationship between the selected Taxonomy Term item in the Node and the View?

Update: I found another StackOverflow answer. Though seemingly complex (I don't yet understand how it works), the initial results are promising.

1 Answer 1

1

You set up a contextual filter on the View Block to Content: Has taxonomy term ID.

enter image description here

So we need to hand this view a term ID. Since we're going to be calling this block using Context. There won't be a default value given in the URL. Therefore we have to give it one.

Select

  • Provide Default Value
  • Load default filter from node page, that's good for related taxonomy blocks
  • Choose your default vocabulary

enter image description here

1
  • 2
    I would also add a Contextual filter on Node ID, and under 'provide default value' select 'Node ID forom URL', then under 'More' check to exclude. That way the current node will not appear in the list of similar nodes and you prevent the page linking to itself. Nice answer.
    – Triskelion
    Commented Mar 15, 2013 at 16:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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