Hi, is the field tokens still not working. I'm trying to use [note:field_file] with the rules module, but it returns nothing. I have read.

Field tokens
http://drupal.org/node/691078
but this refers to an older beta I'm using .07
I looked at:
How do you use [file:size] and similar tokens?
http://drupal.org/node/1249292
It refers back to the
Field tokens
http://drupal.org/node/691078

So am I correct in presuming the [node:field_file] still will not work? If I am wrong what do I need to do to get it working. I need it to show me the link to the file with in an email I am generating with the rules module. I've posted an issue there too as I was not sure where to post it.

In the views module [field_file] does give me the path to the file no problem.

Any help?

Thank you.

Comments

tsvenson’s picture

Field tokens work. Thing is that they work a bit differently than other tokens. This is due to their nature that you have control of what is stored in each field and that can be pretty much anything.

Basically you can expect that you get the value it stored in the field out from a field token. In this case it should be the file ID, not the path to the file itself.

That it works in Views is because you there also apply formatters on the data. Then Views does the hard work and finding out the path for the particular file ID for you.

Jim Ruby’s picture

So how do I get the tokens to build the path to the current file? If I could see the token list maybe I'd be able to figure this out, but I need keyboard access and that is currently being worked on.

Could anyone provide me with an example?