Score:0

Get all taxonomy terms from one vocabulary used by articles with a term in another vocabulary?

cf flag

15+ years Joomla user but Drupal newbie here. Taxonomies are causing me a little bit of a headache. For my articles I have set up 2 taxonomy vocabularies: Category and Tags. Each article can (must) have exactly one Category but can have multiple Tags.

What I would like to have is a block which shows all Tags used in all articles which are in the same Category as the article which is displayed. I do have appropriate URL aliases. /taxonomy/term/xxx is translated to /term-title and /node/xxx is translated into /category-name/article-title

Having the block also displayed on the /taxonomy-title page if it's a Category would be a plus.

I have been tinkering a lot with views and I do have some ideas but I just couldn't make it work. I either get no block at all or an empty block (besides the block title).

Here's where I'm at (I'm aware the URL shows in the screenshot - the site is not reachable publicly):

enter image description here

enter image description here

mx flag
OTTOMH: you need to do several stops/hops, no matter which Views type you start with. I think it could be done with node type and term type. First you find all other nodes in the same Category, through a reverse Relationship (siblings), then add another Relationship for tags and match them, then through fields show all the tags with the second Relationship. Or start with tags, relationship to content, chain relationship to terms, contextual for node ID first relationship, or something similar. They key is in chaining relationships to make the matches.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.