how to edit default print $content in drupal
print $content
Usually, you replace
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.
<FIELD_NAME>
˚ ˚ ˚ ˚ ˚ Kristi Wachter Drupal consultant, evangelist, and enthusiast
Comments
Usually, you replace print
Usually, you replace
print $contentwith 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