Great Module!
Can you add support for Explainfield? It is a new CCK widget that adds js functionality for the explain/other options.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | explainfield_token_support.patch | 777 bytes | shawn dearmond |
Great Module!
Can you add support for Explainfield? It is a new CCK widget that adds js functionality for the explain/other options.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | explainfield_token_support.patch | 777 bytes | shawn dearmond |
Comments
Comment #1
gregglesNo - it's up to other modules to support token. Not the other way around.
Comment #2
snufkin commentedNathan, could you give an example where you could use tokens? I never really used them, so an example would help me understand where to implement what.
Comment #3
nathanraft commentedTokens would be used for the CCK Explainfield in cases where you would want the node title to be the explain field selection or option that was added.
For example:
The explainfield widget could have 4 check boxes (1. Train, 2. Car, 3. Horse 4. Other)
If the person choose on of the first 3 then the node title would be the value chosen. If they choose other then the value would be what they type in to the text box would be the title.
Comment #4
shawn dearmond commentedHere's a patch. See if it works for you. I've only ever tried it with workflow_ng.
if you select the "raw" token then it will only output whatever you selected in the pull-down. If you select the "formatted" token, then it will output either the one from the pull-down, or, if the trigger was selected, it will output the "Explain" textbox.
Comment #5
webanalya commentedHi,
Thanks !
I'm using token with autonode_titles and it's also work well with the 6.x-1x-dev.
Comment #6
webanalya commentedoups !
it works when used values are in the list...
But when we set the value by 'other', token diplays :
- trigger key's value for [field_FIELDNAME-raw]
- key|label : help message (set in default values) for [field_FIELDNAME-formatted]
I need a solution but I'm so novice... Can someone help me ?
thanks !
Comment #7
shawn dearmond commented@webanalya: Are you using it with Drupal 6? The patch I submitted isn't for D6.
Comment #8
webanalya commentedhi !
yes, i'm using this patch with D6... a test. it could have worked ! indeed, it works almost! all is in almost...