Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By limbovski on
I have a node that requires a lot of theming for each field.
I'd like to hook into the field in template.php and modify it a little then do my output / frontend in .tpl.php.
What is best practice or maybe a link to documentation on theming the field values of a node?
Comments
Following variables available in your theme's node templates
The following variables available in your theme's node templates
$FIELD_NAME_rendered
$GROUP_NAME_rendered
use node-CONTENT_TYPE_NAME.tpl.php to theme your node
Check this link : https://www.drupal.org/node/807330