Active
Project:
CCK Taxonomy Super Select Ultra
Version:
5.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Mar 2008 at 16:44 UTC
Updated:
6 Nov 2010 at 08:06 UTC
Jump to comment: Most recent file
Comments
Comment #1
doc2@drupalfr.org commentedChild related issue: To get a correct nodetitle and path, I needed to use the [term] token and therefore turn my vocabulary back on as a workaround on my "document" nodetypes. This led me to get a minor but annoying "duplicate entry" error, as well as two places to tag my nodes, which makes it confusing for my editors. Indeed, I have the same problem on another vocab which is obligatory and therefore the editors cannot just ommit to tag the node in the category fieldset.
Child issue reference #235907: "Duplicate entry" error when same vocabulary & ccktssu field are enabled (token related)
Comment #2
rconstantine commentedI'll take a look when I get a chance, but I seem to recall that someone else wrote the token functions for this module. That is, if there are token functions - I honestly can't remember and I'm not in front of the code right now. So first things first - verify that there are two token functions in the module. Feel free to copy and paste them here as I am often away from my development machine and we can look at them here instead.
Comment #3
doc2@drupalfr.org commentedHere is the code, from line 1131 to 1163:
Anyone on this?
Comment #4
rconstantine commentedMy first impression is that something doesn't look right, but I don't know what. I have only written a couple of pairs of these functions for other modules of mine. For example, the cck_fullname module wherein I export each name part as a separate token. At least, that's what I recall.
So I haven't worked through the code here to know what is happening, but maybe it isn't doing what it ought to. If you can find a token code guru to take a look, please do. I don't presently have the time.
Comment #5
gregglesThe behavior you see (token doesn't get replaced or gets replaced with white space) means that the value given back for this token by hook_token_values (in this case ck_taxonomy_ssu_token_values) is not parsing the data correctly and is either not setting that token (in the case of ANT) or is setting it to white space (in the case of Pathauto).
I don't know anything about ccktssu nor about parsing it's data so I can't offer guidance on how to fix this issue beyond what I just stated.
Comment #6
Leeteq commentedSubscribing.
Comment #7
summit commentedSubscribing, any update on this please?
greetings, Martijn