[support] Theming specific node (content) types
Abhinav Jain
abhinavsinbox at gmail.com
Mon Mar 26 21:38:26 UTC 2007
Hi
This is reference to http://drupal.org/node/17565
I am using a new template file for a new content type I made using CCK.
How can I access the individual fields that I created, in the template file
?
I tried this :-
<?php print serialize($node->field_idnumber)?>
(field_idnumber was the field that I added)
and the output I got looked something like :-
a:1:{i:0;a:2:{s:5:"value";s:6:"123123";s:4:"view";s:6:"123123";}}
Now how can extract the data i.e 123123 from this ?
The article mentioned above, says that probably a php code is needed for
this ? Can't it be accessed in way similar to title i.e $node->title
PS : I did tried this :- $node->field_idnumber->value but this doesn't seem
to work
Thanks and Regards
Abhinav Jain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20070327/16cad422/attachment.htm
More information about the support
mailing list