Best practice for inserting $title above content and right sidebar?

Events happening in the community are now at Drupal community events on www.drupal.org.
mattkoltermann's picture

Hi!

If I'm not in the right forum for this kind of topic, please accept my apologies -- and it would be great if you could direct me to a more appropriate place.

I'd like to print the $title above $content and $sidebar_second, but to the right of $sidebar_first. What the best way to do that?

Here are some awesome diagrams of what I'm looking for, where:

N=$navigation
1=$sidebar_first
T=$title
2=$sidebar_second
C=$content

ZEN DEFAULT:
NNNNNNNNNNNNNN
1111TTTTTTTTTT2222
1111CCCCCCCCC2222
1111CCCCCCCCC2222
1111CCCCCCCCC2222

MY IDEAL!
NNNNNNNNNNNNNN
1111TTTTTTTTTTTTTT
1111CCCCCCCCC2222
1111CCCCCCCCC2222
1111CCCCCCCCC2222

SECOND-BEST:
NNNNNNNNNNNNNN
TTTTTTTTTTTTTTTTTT
1111CCCCCCCCC2222
1111CCCCCCCCC2222
1111CCCCCCCCC2222

Thanks for your help!
Matt

Comments

This is a little bit tricky,

Garrett Albright's picture

This is a little bit tricky, because there are two places where titles are printed in Zen templates. For non-node pages, it's printed by page.tpl.php, but for node pages, it's printed by node.tpl.php (or node-[node-type].tpl.php or what-have-you).

First, copy page.tpl.php from the zen/templates directory (or the directory of your theme's parent theme if you're using one besides STARTERKIT) into your theme's templates directory. Take it out of the #main-wrapper section and put it somewhere else - probably between #header and #main-wrapper.

Using CSS, you should be able to place a top margin on the second sidebar to push it down below the new title section and add a left margin to the new title section so that it clears the first sidebar.

Easier said than done, but this should push you in the right direction. I personally have successfully used Zen to translate some rather bizarre layouts artists have come up with.