1

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!!!!!

designer-trying-coding
  • 5,994
  • 17
  • 70
  • 99

1 Answers1

2

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
  • 6,097
  • 2
  • 26
  • 29