Project:Taxonomy Navigator
Version:6.x-1.1
Component:User interface
Category:feature request
Priority:normal
Assigned:nestor.mata
Status:needs work

Issue Summary

Is it possible to view full hierarchy of category terms?
At this moment, I can see only first level links and no sub-categories.

Thanks.

Comments

#1

Assigned to:Anonymous» nestor.mata

Will have this feature for this week

#2

I'm interesting in this issue too and create little patch for function taxonomy_navigator_block_content:

function taxonomy_navigator_block_content($vid) {
  $terms = taxonomy_get_tree($vid, 0, -1, 2);
  ...
        'href' => $base_path . $term->tid,
    'attributes' => array('class' => 'depth'.$term->depth),
    );
    if(taxonomy_navigator_is_term_active($vid, $term->tid)) {
      $links[$term->tid]['attributes'] = array('class' => 'depth'.$term->depth.' active');
    }
  ...

This patch define depth of tree in taxonomy_get_tree as 2 (it's my case) and define CSS class "depthN" for each links where N is depth of term in vocabulary. CSS classes needed for show hierarchy in right way.

#3

I am interested in this as well. I notice this issue has been open for over a year. I'm a total novice at php. Timur or someone, could you please post very simple instructions on where to put your patch (which file, etc.)? I would GREATLY appreciate it! The simpler the better. Treat me like a toddler!

Thanks so much to anyone taking the time to help.

#4

Status:active» needs work

@Timur, thank you for your code. Would it be possible for you to post this in patch format and attach it to the issue so that a) it may be tested by the Drupal bot and b) may be applied by folks subscribing to this issue? If you're unsure how to create a patch, let me know and perhaps I can assist in turning this into patch format.

nobody click here