I have Taxonomy dhtml installed and running happily... I have setup the index.php?q=taxonomy_dhtml page to display just one catagory. However I would like to have 3 such pages all showing the nice tree menu for 3 seperate vocablaries.

How can I do this?? I spent an hour this afternoon looking at the code for the module and trying to work out what function does what and therefore how to call one from within a page... But got nowhere at all...

Any help please??

Andy

Comments

andykemp’s picture

Using the following code

  $n=0;
       $tree = taxonomy_get_tree(7);
       $tree_nodes = taxonomy_dhtml_inject_nodes($tree);

    $boxes[$n]["content"] = theme("taxonomy_dhtml_render_outline", $tree_nodes);
    $boxes[$n]["subject"] = $vocabulary->name;
    $n++;
  

      foreach ($boxes as $box) {
       $output .= "<div class=\"voc\">\n";
       $output .= "<h3>". $box['subject']. "</h3>\n";
       $output .= $box['content']. "\n";
       $output .= "</div>\n";
      }
      print ($output);

I was able to get the module to spit out the menu for vocab 7, as I wanted however try as I might I cannot get it to display the number of nodes in each group...

Any ideas?

andykemp’s picture

Does no-one understand how this module works???

Any help very greatfully recieved!