Closed (fixed)
Project:
Token Filter
Version:
7.x-1.0
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
18 Nov 2011 at 06:29 UTC
Updated:
21 Feb 2013 at 09:02 UTC
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
Comment #1
JessicaK commentedHi, 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
Comment #2
dave reidTry using Token filter 7.x-1.x-dev.
Comment #3
dave reidComment #4
akshay_doshi commentedHello 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
Comment #5
dave reidDon'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).
Comment #6
akshay_doshi commentedThanks Mr Dave Reid .
Thanks for your valuable feedback .
Thanks and Regards
Akshay.Doshi
Comment #7
LTech commentedI 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