Active
Project:
Entity API
Version:
7.x-1.x-dev
Component:
Entity tokens
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Aug 2012 at 18:50 UTC
Updated:
27 Sep 2013 at 18:39 UTC
Hello,
My problem is that substitutions like %node:foo:bar are not working, while %node:foo is working.
I am trying to use organic groups tokens to pass the group id of a node to a view in mini panels.
To do this, I am trying to send this argument: %node:group:gid, however this is not working.
This also happens with other subtokens like %node:author:name, and not just Organic groups. Title substitutions are also not working with sub-tokens either.
Substitutions work perfectly with regular tokens like %node:title.
I posted this in panels issues, but after some research, I believe this is a problem with entity tokens.
Thanks
Comments
Comment #1
tedbowI have found a similar problem which might be same.
I can't get fields that are attached to the user of an entity to show.
So here is the token I trying to use:
[profile2:user:field-feature-request]
The Rules data selector provides this token so I assume that entity_token_token_info_alter is correctly providing the token(though maybe not the type)
So it seems like entity_token_tokens is not replacing the value.
I have also confirmed the same behavior on for tokens of my Entityforms module
Comment #2
jitesh doshi commentedI'm not sure why this bug is not getting the attention it deserves. It has been around for over a year.
In my testing I'm seeing that [node:author:field_my_custom_field] DOES get expanded when "tokens" module is enabled, while "entity" and "entity_token" modules are disabled. As soon as I enable "entity" module or "entity_token" module, the token replacement for [node:author:field_my_custom_field] stops working.