I'm trying to grab the taxonomy terms from the currently displayed node and use these as arguments to a view in a block displayed displayed alongside the node, to show other items from the same taxonomy.
I thought the answer was to use mini-panels although I'm struggling to get the config right- what's the correct approach?
Thanks,
Chris.
Comments
Comment #1
mongothemad commentedI am trying to do the same thing as well. From what I have come across, it is possible to pass the taxonomy term into the title, but not the actual content of the view/mini-panel.
Comment #2
merlinofchaos commentedI need more information about what you're doing, because I don't see where mini panels should even be involved.
For example, are you using a page manager page with context for your node display.
Comment #3
mongothemad commentedHere is how I got it to work: (You may use another method, chrism2671)
1. Create the view with the taxonomy term ID as an argument. (Validator: Taxonomy term with Term ID as the argument type)
2. Create a mini panel the the content to be the view you just created. Have the Taxonomy: Term ID set to Term ID sending the argument %0.
I placed the mini panel into my panel page and had that pass in the term vocabulary.
Comment #4
chrism2671 commented@merlinofchaos
Here's an example of what I'm trying to do. I'm viewing a node which has a taxonomy term attached. I want to display alongside it a block that reads the taxonomy term of the node being looked at, and lists other nodes in that taxonomy.
I've managed to accomplish this with views_embed_views and node_load(arg(1)) in the block (without using panels), but I'm certain there's a tidier way.