By webdrips on
Hi all.
I'm using a variable to load CCK values from another node using the following code:
$node = node_load($nid);
print $node->field_my_field[0]['value'];
However, one of the really nice features of CCK is, if you're viewing a node with CCK values set, you can print a rendered version of the value or group using print $field_my_field_rendered; OR print $group_my_group_rendered;
But I want to access these variables from a different node (and different node type) to save myself quite a bit of code and maintenance. Note also that the fields are of type node reference.
Can someone point me in the right direction?
Thanks,
Dan
Comments
I am working with something
I am working with something similar, maybe this doc will help you:
http://dominiquedecooman.com/blog/drupal-how-load-content-fields-using-c...