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 patricktroughton on
Hi,
I'm theming a blog. I want to put the blog writer's picture at the top of the page. The node template has got a picture variable to do this, but the node template repeats for each blog entry and i don't want the writer's picture displayed more than once. So, i need to spit out the picture variable from the page.tpl.php.
Any ideas?! Thanks
Comments
This may be of use to you
This may be of use to you for pushing variables into various templates:- http://drupal.org/node/16383
This may help
This snippet should do the trick
Thanks but...
Thanks, that's a stroke of genius!! But how would i get the blog author's picture rather than the currently logged in user's picture?
This should help
This snippet works when viewing pages with a path of the form 'blog/#', where # is the user id of the blog being viewed.