2

I am using the awesome Panels module to override the default taxonomy display. I am using the Related Terms content pane (built-in to Panels) to show children of the current term.

My vocabulary looks like this:

  1. Country
  2. State
  3. City

What I would like to do is show the child terms (related terms pane) only for countries, not states or cities. In other words, I would like to show the related terms pane if and only if the term has no parents except the root parent.

However, the only Visibility Rule that seems to apply is Term has Parent(s), which requires a user-created term (not the root term) to be selected. I could select all of the terms and then check Reverse, but I have hundreds of locations and more are being added all the time, making this unfeasible. Is there some other way?

2

I wrote something quick together over in Different variant for other Taxonomy hierarchy within vocabulary, that gives a selection rule for the term level.

It sounds like that would help you.

  • Thanks, that did it for me! I added the minor issues I noticed to the bug report. – Patrick Kenny Nov 4 '12 at 15:18
  • Great, glad I could help. I removed the part of the answer referring to the buggy behaviour, as I believe it's fixed now anyway, and if not, that'll be documented in the issue, not here. – Letharion Nov 5 '12 at 10:13

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.