Closed (fixed)
Project:
Computed Field
Version:
5.x-1.2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
7 Apr 2008 at 20:54 UTC
Updated:
23 Oct 2010 at 02:03 UTC
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
| Comment | File | Size | Author |
|---|---|---|---|
| comp_fld_token.patch | 878 bytes | clivesj |
Comments
Comment #1
Gidgidonihah commentedRemoved the previous patch and applied this one. Simple testings shows no problems.
Comment #2
karens commentedI agree that this works and is the correct fix.
Comment #3
karens commentedActually, 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.
Comment #4
karens commentedAnother solution for the 'view' to work is at http://drupal.org/node/207443. That option has other advantages (other modules can supply formatters).
Comment #5
nterbogt commentedThe 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!
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #7
asb commented> 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...
Comment #8
ionmedia commentedpatch works fine for me, can you add it for 5x module?
Comment #9
vhwouter commentedI'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