I would like to filter taxonomy by parent in a view.

I have a huge list of main and subcategories and i need to display a block showing only the main categories.
A fold out for subcategories would be even nicer...

Is this taxonomy-related or is this view-related?

Please advise. Thank you!

Comments

dawehner’s picture

Status: Active » Fixed

Add a relationship term: parent and add a filter for term id with term id is empty.

It's important that you choose the relationship you created in the filter setting.

WilliamV’s picture

Thank you, this works.
Any idea for the parent term to be a dropdown-list to display child-terms?

WilliamV’s picture

Status: Fixed » Active
dawehner’s picture

No this is not possible without custom development. But you have assigned the issue to yourself so you will be able to do it :)

WilliamV’s picture

Assigned: WilliamV » Unassigned

Sorry, thanks for mentioning. I'm new to all of this.
If you would have a simple idea to implement the fold-out possibility for the child terms, please do advise.

dawehner’s picture

Perhaps i don't get what you mean with "fold-out"?

Can you make a better description what you want to achieve?

WilliamV’s picture

I mean: when you click on a parent term, the child-terms become visible underneath it.

example:

Categorie 1
Categorie 2
Categorie 3

When clicked on Categorie 2 you have following visible:

Categorie 1
Categorie 2
Sub 1
Sub 2
Categorie 3

Please advise.

iamjon’s picture

WilliamV
Did you ever find a solution for this?
Take a look at http://www.leveltendesign.com/blog/randall-knutson/collapsing-folders-ta...
He used a module to achieve the tree, but if you have the tree working then js should be the same

dawehner’s picture

Status: Active » Fixed

No responce since now nearly 2 months, so marked as fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

omar alahmed’s picture