G'day All,
Just wondering how I can get a block above the content/stories on my website?
Kind Regards Jordan
You can create another Region (similar to navbar-left, content, header, footer and navbar-right)
Details at:
http://drupal.org/node/29139 Regions in PHPTemplate http://drupal.org/node/134973 Adding new region to Garland Theme
------------------- http://www.PrivacyDigest.com/ News from the Privacy Front http://www.SunflowerChildren.org/ Helping children around the world
One solution you can do is to add a new line to your page.tpl.php file, just above where you see print $content:
print $content
print $abovecontent;
Then, in template.php define this as a new block area (change themename to your theme's name) e.g.:
function themename_regions() { return array( 'right' => t('right sidebar'), 'content' => t('content'), 'header' => t('header'), 'footer' => t('footer'), 'abovecontent' => t('above content'), ); }
Now, in the admin > blocks, you will see 'above content' as a new region to add blocks.
______________________________________________________________________________________________________ Need help? Check the FAQ and the Handbooks first.
______________________________________________________________________________________________________
^ that was simple , and worked perfectly.
Comments
create another Region
You can create another Region (similar to navbar-left, content, header, footer and navbar-right)
Details at:
http://drupal.org/node/29139 Regions in PHPTemplate
http://drupal.org/node/134973 Adding new region to Garland Theme
-------------------
http://www.PrivacyDigest.com/ News from the Privacy Front
http://www.SunflowerChildren.org/ Helping children around the world
One solution
One solution you can do is to add a new line to your page.tpl.php file, just above where you see
print $content:print $abovecontent;Then, in template.php define this as a new block area (change themename to your theme's name) e.g.:
Now, in the admin > blocks, you will see 'above content' as a new region to add blocks.
______________________________________________________________________________________________________
Need help? Check the FAQ and the Handbooks first.
______________________________________________________________________________________________________
thanks incren8
^ that was simple , and worked perfectly.