Closed (works as designed)
Project:
Tokenize
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
7 Nov 2008 at 02:03 UTC
Updated:
23 Dec 2008 at 15:21 UTC
can we use token inside the node's body? like:
lkasjdfjaslf
asdfjaslfjlsfsfasdf
This is the [token].
askfsjflaslfs
asfsaf
Is it possible ?
Comments
Comment #1
yang_yi_cn commentedActually I was trying to put a cck field as a token in the body, but
doesn't work.
When I use token_get_list('all'), the list shows the CCK tokens. But I have no idea how to make the replace work...
Comment #2
yched commentedCCK only provides token values when token module asks for them, so you'll need to turn to token for informations on this.
Comment #3
gregglesThe token system doesn't actually do anything on its own :)
The tokenize module theoretically does stuff like this but
1) it's not ready for 6.x yet
2) it doesn't work on node bodies, just on cck fields.
So, I'll make this into a feature request for the tokenize module to do this.
Comment #4
summit commentedSubscribing, greetings, Martijn
Comment #5
gregglesI think that http://drupal.org/project/token_filter is the better place for this. In fact I'd be willing to deprecate the tokenize module in favor of that since it is largely abandoned now. Filters/Input formats are a much more general way to approach the problem.