I am trying to install an image above the title field like http://www.bchigh.edu/podium/default.aspx?t=18732
Here the About link has an About image for all sub-linked pages.

The navigation functionality is easily achieved with the book module. I need a similar layout.

Image
Title
Body

I tried cck and cck image field but cannot get the image to appear above the title.

Any pointers will be appreciated

Thanx

Comments

anantagati’s picture

You can make .tpl.php file for specific node type and set everything as you need.

http://drupal.org/node/62466

joachim’s picture

mmmyeah, but isn't the title provided by page.tpl on standalone nodes (ie, not in a feed)? That's going to make it pretty tricky.

dman’s picture

It depends a lot on your theme requirements.
I found the need for something like this (page-specific title banners replacing the usual one) and ended up choosing NOT to display any title with a snippet in page.tpl if arg(1) was 'node'.
Then I have full control in the node.tpl.php etc.

Not all themes will like that, however, as sometimes the title is positioned far away in the code from the $page. ... Which annoys me.

.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/

yan’s picture

Nice, that seems to solve my problem!

One question though: Would arg(1) be for multi-language sites? I am using arg(0) now.

dman’s picture

Probably just an off-by-one error in my memory

.dan.
if you are asking a question you think should be documented, please provide a link to the handbook where you think the answer should be found.
| http://www.coders.co.nz/ |