How to store extra information in Drupal $node?

This Comment will be submitted for moderation and will not be accessible to other users until it has been approved.


21 points

Hi All,

In my drupal theming, I am stuck. I am using Drupal 6.

I have some extra data that I want to put in $node, so that I can show this data when theming the template file (node-contentype.tpl.php). I don't want to query mysql database in my template file?

Please help.



Post Comment

  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.