Active
Project:
AD Novus
Version:
6.x-1.5
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
24 Sep 2009 at 12:30 UTC
Updated:
28 Jul 2010 at 09:21 UTC
Hi all,
I need to create a new region just above the content region.
I have added the new region on my .info file and the below code on my page.tpl file right above the main content.
<?php if ($content_top): ?>
<div id="content-top">
<?php print $content_top; ?>
</div>
<?php endif; ?>
I can now see my new area under blocks however, when I add a new block there it isn't formatted with the standard theme layout. Instead of appearing in the centre right above the main content it's displayed on the far left behind my left sidebar pushing all the rest of the regions underneath.
I am hoping someone can help me finalise this.
Many thanks for your time
Comments
Comment #1
Alan Cooney commentedHave a look at the ad_blueprint theme for a way of doing this, but it's not easy. The theme uses an undocumented but very effective layout system seen in Zen and a few other related themes.
Alan
Comment #2
iantresman commentedI was able to add a new region below the main content, which I call "mybottom":
to:
In (1) above, it was necessary to add all the existing regions, otherwise my sidebar disappeared, breaking the theme.