List all of the nodes under each taxonomy term and its subterms?

astra - July 2, 2006 - 11:59
Project:SiteMenu
Version:5.x-1.0
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

How to list all of the nodes under each taxonomy term and its subterms?

For example for a site menu:

Education(10)
Languages(7)

When visitors just click the Education link, only 3 nodes will be listed without that 7 nodes under its subterm Languages.

But I expect to list all of the 10 nodes, including the nodes under its subterm Languages. Because the number 10 of the nodes for Education should include 7 nodes for Education/Languages and other 3 nodes for Education. Any solution to make this possible ? Thanks!

#1

Zoologico - November 21, 2007 - 05:18
Version:4.7.x-1.x-dev» 5.x-1.0
Component:Miscellaneous» User interface

I am seeing the same thing in version 5.x-1.0.
Is there a workaround to this?
I'd just like a way to list out all the terms instead of getting htem 3 at a time. It almost seems like this is controlled from somewhere other than sitemenu.
Any leads that might help?

#2

eaposztrof - December 15, 2007 - 06:49

just replace the

    if ($term->depth < $tree[$m+1]->depth) {
      $output .= "<li class=\"expanded\">". $link ."\n";
    }

with this:
    if ($term->depth < $tree[$m+1]->depth) {
      $output .= "<li class=\"expanded\">". $term->name.$count ."\n";
    }

in the modules/sitemenu.module file

#3

astra - December 17, 2007 - 16:22
Assigned to:astra» Anonymous
Status:active» fixed

A solution is to use the module: Taxonomy Force All

#4

Anonymous - December 31, 2007 - 16:31
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.