Closed (outdated)
Project:
Computed Field
Version:
6.x-1.0-beta3
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Nov 2009 at 20:20 UTC
Updated:
29 Dec 2018 at 12:59 UTC
Jump to comment: Most recent
Comments
Comment #1
avibrazil@gmail.com commentedI get "unknown function" when my template function is called from inside Compute Code.
But it works when I call it from the Display Format.
Apparently, template functions are not available in Compute Code time but are available on Display Format time. On the other hand, $node is not available in Display Format time.
In my case, $node and other things should be available in Display Format.
Comment #2
avibrazil@gmail.com commentedI just realized that the $node object is actually accessible from the Display Format as $element['#node']. For example:
$element['#node']->nid
$element['#node']->taxonomy
etc...
Comment #3
mmjvb commented