开发者

using custom CCK fields in node + Drupal 6

开发者 https://www.devze.com 2022-12-30 11:43 出处:网络
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

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 ? anyt开发者_开发技巧hing like that?

appreciate helps!!!!!


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消