node-load

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
el_reverend's picture

Calling node_load from within template

Does anybody know of the implications of using node_load() in a template and have a better suggestion?

Some details:

I have a cck content type that uses the cck reference field to link to a node manually entered (intentionally) by an editor. I am using that nid via node_load() to get a image from the referenced node and display it together with the title. This 'related post' block is a curated list of other posts related to the current one.

Read more
Subscribe with RSS Syndicate content