In the body field of a node I try to use tokens. It works fine with [current-date:short], but not with [node:title] or a custom field [node:field_umfang]. I use filter and token_filter module.

I copy all tokens directly from the help page.

What could that be?

Thanks, Michael

Comments

JessicaK’s picture

Hi, I have the same problem.

I am using tokens in a node field, in Drupal 7.9. Like Michael I have copied the token names from the help function, so they should be correct.

Some tokens work just fine, for example [date:long], [current-user:mail], [site:name].

Others, for example [node:author], [content-type:name], [node:created], don't work.

So within the same field, if I make a list using all the above tokens, half of them will show the correct result, the other half will just show the token name exactly as I have typed it.

Any tips?

Thanks!

Jessica

dave reid’s picture

Status: Active » Postponed (maintainer needs more info)

Try using Token filter 7.x-1.x-dev.

dave reid’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)
akshay_doshi’s picture

Priority: Normal » Major
Status: Closed (cannot reproduce) » Needs review
Issue tags: +Token Filter in Drupal 7

Hello Everyone,
I am using the token filter module some tokens like [site:name], [current-user:mail] works fine .But Users Tokens
such as [user:roles],[user:uid] does not work for me .

Any Help Would be truly appreciated .

Thanks and Regards
Akshay.Doshi

dave reid’s picture

Priority: Major » Normal
Status: Needs review » Closed (fixed)

Don't use [user:roles] and [user:uid], use [current-user:roles] and [current-user:uid]. You cannot use the [user:*] tokens without have any context (they can only be used in text fields on a user account entity, not on nodes).

akshay_doshi’s picture

Category: support » feature

Thanks Mr Dave Reid .

Thanks for your valuable feedback .

Thanks and Regards
Akshay.Doshi

LTech’s picture

I would like to send an entity field from my node. The token shows in admin/help/token as [node:field-artist].
But when I put it in the code for the URL it doesn't bring the artist's name, just shows [node:field-artist] text.
How can I send fields from the node in the URL? (the page is build using panels)
Thanks