views:

213

answers:

1

Hi friends,

I'm new at drupal.

I created custom content type with CCK. Added some Phone, Address, Fax fields... Now I'm editing the related node. but in the node it just says print $content How can I use the custom fields I've created? maybe something like print $field_name ? anything like that?

appreciate helps!!!!!

A: 

You'll have to use $node->field_name[0]['view'] for most fields except for complex/compound fields like Address fields. Take a look at Example: Theming a Specific CCK Content Type.

More information can be found and linked from CCK For Themers from the Drupal Book pages.

sirhc
cool! thanks so much!
artmania