Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This module is very ideal for my use however it display the taxonomy hierarchy very strangely as below.
All the terms (including the deepest terms) are having duplicated terms as their child terms with tid number.
I tried the 6.11 and dev version also with views 2 and 3 , also with different themes but it didn't work as expected.
I have also attached a screen shot.
Parent1
-00001-Parent1
-Child1
-00001-Parent100002-Child1
-Child2
-00001-Parent100003-Child2
Comment | File | Size | Author |
---|---|---|---|
#5 | Terms in Vocab | d6.local_.jpg | 28.56 KB | timtunbridge |
#5 | Edit view Vocab2 | d6.local_.jpg | 96.41 KB | timtunbridge |
#5 | Edit view Vocab2 | d6.local-2.jpg | 93.86 KB | timtunbridge |
strange term lineage.jpg | 20.71 KB | chinita7 |
Comments
Comment #1
chinita7 CreditAttribution: chinita7 commentedI just found out that "Strip weights" setting can remove the term ids. However All the terms (including the deepest terms) are still having duplicated terms as their child terms.
What I would like to do is
but not
Comment #2
xjmYou probably want to add two fields to your view: the term name, and the term hierarchy. Exclude the hierarchy from display. You might also want to add the term depth field, exclude that from display as well, and use it to provide indentation formatting.
Comment #3
chinita7 CreditAttribution: chinita7 commentedThanks I tried both fields "Taxonomy: Term" and "Taxonomy: Hierarchy" and excluded "Taxonomy: Hierarchy" using " Lineage nested list" style with "Nesting Field:hierachy". Then the duplicated parent terms were removed but the duplicated child terms are still there as their grand child terms (one more level down). I also tried "depth term" and excluded it but I really could see the deference unfortunately. Now it's looking like this.
Comment #5
timtunbridge CreditAttribution: timtunbridge commentedIs it OK to reopen this again, forgive me if this is not the right etiquette.
I am experiencing a similar issue, namely duplicate entries appearing in the tree. Immediately after each h1 h2 h3 etc the same value as contained in the header tag is repeated in a ul li div span. Every value in the tree is being repeated in this way.
Screenshot1 shows the underlying taxonomy hierarchy. Screenshot 2 the view and Screenshot 3 the results.
Following #2 above, Taxonomy Hierarchy is excluded from the display (with strip weights also selected). Taxonomy Term is being displayed.
The duplicates have a CSS class of views-field-name so I could target these with a display: none, but am I just doing something wrong?
Thanks for clarifying.
Comment #6
Vilcoyote CreditAttribution: Vilcoyote commentedI have the same issue, has anyone ended up solving the issue?
Comment #6.0
Vilcoyote CreditAttribution: Vilcoyote commentedbetter discription