Score:0

How do i list all child terms that share the same parent term? But on "child term" page?

et flag

Let's say I have the following taxonomy (a 3-level hierarchy).

  • Acura
    • Integra
      • Hatchback 1991
      • Hatchback 1995
      • Hatchback 2000

If I am on the last term of this hierarchy, for example Hatchback 1991, how do I display all other specific models that belong to its parent (Hatchback 1995 and Hatchback 2000)?

Probably Taxonomy Term Siblings.

cn flag
Adding a relationship to the parent term and creating a contextual filter using it is the standard way to solve this - if it's not working for you please edit the question to provide full details of what you're trying so people can see what you're working with
Hefi avatar
et flag
I don't know if I spoke correctly, but I need this: On the child term page I need a list of other child terms that belong to his parent term and possibly to his grandparent.
cn flag
That will probably need custom code, I don't think out of the box Views will be able to build a query that complicated with the UI
Hefi avatar
et flag
If I'm on the "child term page", then views can't show child terms that share the same parent? Strange.
cn flag
Yeah it can do that, see my original comment. You added grandparents afterwards, though. I suspect that will complicate the SQL query to the point the UI wouldn’t be able to build it. Prove me wrong though!
beltouche avatar
cn flag
Does this help? https://www.drupal.org/node/1084402#comment-9932710
Hefi avatar
et flag
Unfortunately, this does not work. At least not in Drupal 9.
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.