I have proposed this patch to be applied on the Token module.
However as explained here by greggles it is better to apply the patch in the module for which the token is for.
CCK Computed field are now listed for token replacement

CommentFileSizeAuthor
comp_fld_token.patch878 bytesclivesj

Comments

Gidgidonihah’s picture

Removed the previous patch and applied this one. Simple testings shows no problems.

karens’s picture

Status: Needs review » Reviewed & tested by the community

I agree that this works and is the correct fix.

karens’s picture

Actually, this patch is the right thing to do for Token support, but for the formatted 'view' option to work, you also need the patch at http://drupal.org/node/202384, which is needed to fix other things as well.

karens’s picture

Another solution for the 'view' to work is at http://drupal.org/node/207443. That option has other advantages (other modules can supply formatters).

nterbogt’s picture

Status: Reviewed & tested by the community » Fixed

The dev release of this module has had this patch rolled in. I won't create a new release until such time as a solution to #202384: 'view' cell not populated has been submitted.
Thanks clivesj!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

asb’s picture

> The dev release of this module has had this patch rolled in.

Thanks, the patch does work for me, also. I'm getting computed field values even in views.

However, 5.x-1.2 still seems not to include this; is there any chance to get this into an official release, even if #202384 might not yet resolved?

Thanks & greetings, -asb

PS: The problem that nodes have to be saved twice remains. Still hoping for a solution...

ionmedia’s picture

patch works fine for me, can you add it for 5x module?

vhwouter’s picture

I'm sorry to bother you peeps with a snippet-question.. but I can't find any information on the examples page about (the possibility) of printing values through tokens with the computed field module.

I've been searching for a way to display the value of latitude and longitude from te openlayers geocoder module.

I've found these tokens in the openlayers geocoder module:

$tokens['geocoder']['latitude'] = t('Latitude');
$tokens['geocoder']['longitude'] = t('Longitude');

So how do I print these values in the content through the computed field module?

Kind Regards