how to edit default print $content in drupal

Comments

kristi wachter’s picture

Usually, you replace

print $content

with whatever specific elements of the node you want to display.

For example, if you're using the Location module, you might include

print $node->locations[0]['name'];

If you're using CCK fields, you might include

print $<FIELD_NAME>_rendered;

(using your actual field name in place of <FIELD_NAME>) as described in this handbook page on theming CCK fields within a content type.

˚ ˚ ˚ ˚ ˚
Kristi Wachter
Drupal consultant, evangelist, and enthusiast