By Lausch on
hi guys,
why i cannot print node values with ['view'] if i use node_load, only ['value'] works?
for example
$node->field_lastname[0]['view']
not work with node_load
$node->field_lastname[0]['value']
only work
greets
Lausch
hi guys,
why i cannot print node values with ['view'] if i use node_load, only ['value'] works?
for example
$node->field_lastname[0]['view']
not work with node_load
$node->field_lastname[0]['value']
only work
greets
Lausch
Comments
A guess
From your example the node is from a CCK content type. It would make sense that on node_load only the values are load (['value']) and the view version is only set on node_view.
ah ok, thanks for the
ah ok, thanks for the informations
I had the same issue. If you
I had the same issue. If you do something like this it works:
Brilliant! whew... tnx a
Brilliant! whew... tnx a lot!
btw you can also call it like this:
I was having this same
I was having this same problem! Thanks!
Doesn't work for me
This doesn't work for me - and print_r($node) confirms that only [value] not [view] is created.
interesting node_load behavior
subscribing
http://SocialNicheGuru.com
Delivering inSITE(TM), we empower you to deliver the right product and the right message to the right NICHE at the right time across all product, marketing, and sales channels.