I'm creating my own theme and I've used garland as my starting point.

In node.tpl.php there is a variable called $picture. Where does it get this from? I'd like my nodes to include pictures, but I'm a bit confused about how this all joins up.

Thanks for your help.

Richard.

Comments

michelle’s picture

That's the user's avatar. You need to have user pictures in posts/comments enabled in your theme as well as enabling picture support in user settings for that to have a value.

Michelle

--------------------------------------
See my Drupal articles and tutorials or come check out life in the Coulee Region.

www.richardsprojects.co.uk’s picture

Hi Michelle,

Thanks for that. User avatar pictures didn't even cross my mind as a possibility.

Richard Garside
www.richardsprojects.co.uk