As stated on a issue i saw, beta4 already provides basic level field tokens. I' ve tried using it with this syntax:

[node:field_firma]

But it is not replaced. Also tried [node:field_firma:value]

Is it right? Or the syntax is different? Thanks!

Comments

dave reid’s picture

Status: Active » Postponed (maintainer needs more info)

What type of field is field_firma? Text, file, image, etc.?

Where are you trying to use the token (what context)?

Anonymous’s picture

First, i' m using the Token filter module, so i can use tokens inside the node body.

I have a content type named "Opinion", which has a field named 'field_firma', of type text.

I want to use that token in an "opinion node", editing the body of that node, i write as stated above and it is not replaced. Also i' ve tried other tokens, as [site:name] and it works just fine.

Anonymous’s picture

Status: Postponed (maintainer needs more info) » Active
Anonymous’s picture

Status: Active » Closed (works as designed)

Forget this. Token filter module calls token_replace without any context (the current node).
May be i must do a hack to get Token filter working, or implement other way without Token filter (May be a custom module)