Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

Is it possible to hide taxonomy menu items based on their node count?

E.g. i have several zounds categories (notebooks, office, health, etc) created but they are just empty taxonomy items because the client has yet to add these products.

I'd like only the taxonomy terms with nodes to be visible.

Is it possible to accomplish this via rules or some other module?

Background:

I have a taxonomy menu created by taxonomy_menu and then it's turned into a menu block and that menu block is turn into a superfish dropdown menu.

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

There is an option in the taxonomy_menu "Hide empty items" to disable menu options if there are no nodes tagged with the specific term. The option can be found in the admin/structure/taxonomy then the vacab you are using.

Below is an image for reference.

Settings Image

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.