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.
D 6.10
VI 6.3.x
Brick (1) (1)
I started to see this today - on some children --- "Brick" is a Child Term
It displays on the VI page, after expanding via parnet click
I see this on all child terms for this one Parent - not seeing it elsewhere
Terms were created using Tax Mgr
I thought I would start here
need more info?
Comment | File | Size | Author |
---|---|---|---|
#13 | VI-Test-Vocab.jpg | 147.53 KB | BayouBill |
#13 | VI-Tree.jpg | 109.52 KB | BayouBill |
#13 | VI-Tree-Source.txt | 4.91 KB | BayouBill |
#5 | viblock.txt | 15.71 KB | green monkey |
#5 | SP32-20090504-143953.gif | 7.71 KB | green monkey |
Comments
Comment #1
Xano- Have you modified or overridden the template files?
- What is the official term name of the parent and it children?
Comment #2
green monkey CreditAttribution: green monkey commentedforgot an important issue
this child term had two Parents - relationship set using Tax Mgr
Vocab 1
Parnet 4
Child 204
Parent 40
Child 204
Comment #3
XanoPlease answer all of my questions. If you don't: no fix. Please upload a screen shot and a HTML fragment as well.
Comment #4
green monkey CreditAttribution: green monkey commentedok, will do
however, not currently seeing issue
please leave ticket open for a week or so,
if its a true bug -- it should come back and
I'll do a better job of capturing data for you
thanks
Comment #5
green monkey CreditAttribution: green monkey commentedok , caught it
screen capture & html frag attached
Comment #6
XanoAwesome! Could you tell me if the template files have been modified or overridden?
Comment #7
dpopov CreditAttribution: dpopov commentedSame in 6.x-2.1, default Garland theme. It happens in Tree view when child has multiple parents. Child looks OK when expanding first parent, but under second parent it looks like
<span dir="ltr">(1)</span> (1)
and under third like
<span dir="ltr">(1)</span> <span dir="ltr">(1)</span> (1)
And this child is always first term when displayed under second and third parents (it can't be changed).
Comment #8
green monkey CreditAttribution: green monkey commentedno changes - as known
the only possible changes would have been by another module and I know of none, currently
(edit) I'm only seeing this in duel parents - used Tax Manager to create more than one parent
Comment #9
dpopov CreditAttribution: dpopov commented> used Tax Manager to create more than one parent
I tried to create them with core taxonomy module - same problem.
Comment #10
dpopov CreditAttribution: dpopov commentedI tried to disable all modules – so it happens with just required core modules, core Taxonomy module and Vocabulary Index enabled.
Comment #11
BayouBill CreditAttribution: BayouBill commentedSeeing this too: Drupal 6.13, vocabindex-6.x-2.1.tar.gz, "Analytic" theme with no mods, terms created with core taxonomy functions, no aliases, related terms, synonyms, etc. Only occurs unders parents other than the first one. Ugly! Please keep this issue open.
Edit: Only occurs in Tree view of Page when node counts are enabled and only when child has multiple parents.
Comment #12
XanoPlease provide step-by-step instructions to reproduce this bug using a clean Drupal install with the latest Vocabulary Index 6.x-2.x-dev.
Comment #13
BayouBill CreditAttribution: BayouBill commented"Please provide step-by-step instructions to reproduce this bug using a clean Drupal install with the latest Vocabulary Index 6.x-2.x-dev."
Gladly!
1. Upload *only* 6.13 Core modules
2. Create a virgin, empty, mysql database & point sites/default/settings.php to it
3. Run install.php & create Admin account only
4. Make sure Bluemarine is set as default theme
5. Go to admin/content/taxonomy and create a vocabulary named "Test" as shown in the attached screen shot. Note that ChildA is a child of both Parent01 and Parent02
6. Upload Vocabulary Index 6.x-2.x-dev dated 2009-Jun-17 and enable it
7. Go to admin/build/vocabindex/settings and set Cache lifetime to zero (don't know whether this made any difference, but I did it, so I'm documenting it here)
8. Go to admin/build/vocabindex and on the Pages tab for the Test vocabulary created in Step 5 set a path of "vitest", select "Tree" for View, and select (enable) Node counts. Click Save Configuration
9. Go to the path you set in Step 8 (/vitest) and expand both Parent terms
10. You will see what is shown in the attached screen shot (page source is attached as well)
That should do it. Virgin 6.13 install with **only** the Vocabulary Index module uploaded and enabled. Multi-parent vocabulary term(s). Tree view and node counts enabled. Voila!
Comment #14
BayouBill CreditAttribution: BayouBill commentedHello, Xano. If what I've posted in #13 above is helpful to you, it would be helpful to me if you would give me the answer to the question I asked in http://drupal.org/node/569968 (I would have PMed you on this, but the Contact tab on your Drupal profile is not enabled). Thank you!
Comment #15
thomsol CreditAttribution: thomsol commentedHas there been any update on this? I'm experiencing the same problem. Only appears when child has multiple parents.
Comment #16
XanoNot yet. With Drupal 7 in code freeze I have some other priorities, but this issue is certainly not forgotten.
Comment #17
Orjan CreditAttribution: Orjan commentedAny news on this one?
I made a pure installation and with a term with four parents, it gets worse and worse for each time:
First time it looks perfect:
ISGA90 - Introduktion till IT-Design (0)
Next time:
ISGA90 - Introduktion till IT-Design <span dir="ltr">(0)</span> (0)
Third time:
ISGA90 - Introduktion till IT-Design <span dir="ltr">(0)</span> <span dir="ltr">(0)</span> (0)
and Fourth time:
ISGA90 - Introduktion till IT-Design &lt;span dir=&quot;ltr&quot;&gt;(0)&lt;/span&gt; <span dir="ltr">(0)</span> <span dir="ltr">(0)</span> (0)
My thinking is that it's running htmlentities() on the name for each time and adding a (0) to the title. next time, the title is including last span tag, converts the span tag and adds a last one...
I think the code shall be pretty easy to fix if you know where to find the code...
Comment #18
Orjan CreditAttribution: Orjan commentedSolved it!
By editing vocabindex_link.tpl.php like this:
Remove the first code line:
$term->name .= $vi->node_count ? ' <span dir="' . $dir . '">(' . $term->node_count . ')</span>' : NULL;
and replace it with:
$vocabindex_count = $vi->node_count ? ' <span dir="' . $dir . '">(' . $term->node_count . ')</span>' : NULL;
Then Remove last line:
echo l($term->name, $term->path, array('html' => TRUE, 'attributes' => array('title' => $title)));
and replace with:
echo l($term->name . $vocabindex_count, $term->path, array('html' => TRUE, 'attributes' => array('title' => $title)));
this makes the html-part not being added on each other for each time.
Comment #19
Orjan CreditAttribution: Orjan commentedComment #20
jvieille CreditAttribution: jvieille commentedGreat!
I had rebuild the menu switching from tree to flat and tree again, and to clear the cache though catching was disabled.
Thanks!