Download & Extend

Above Content Region for Blocks

Project:Marinelli
Version:6.x-2.96
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

This theme works perfectly for everything I need except it does not have a block configuration option available for "Above Content" region. Please suggest if there is anything easy to achieve this.

Comments

#1

Hello,
I hope my answer is helpful to you. The following can be one of the solutions to this issue.

You can add a custom region 'above content' on top of the content region and this can be achieved as under

1. Add a region 'Above content' as the one showed in the code below
in your modules/system/system.module

function system_theme_default() {
  return array(
    'regions' => array(
      'left' => 'Left sidebar',
      'right' => 'Right sidebar',
      'above_content' => 'Above content'
      'content' => 'Content',
      'header' => 'Header',
      'footer' => 'Footer',
    ),

2. Print the region 'above_content' in your page.tpl.php above the 'content' region as shown below.
In your page.tpl.php

<div class="above-content">       
         <?php print $above_content ?>
       </div>
         
<?php print $content ?>
      </div>

Now, the blocks can be enabled in this above_content region.

Thanks.

#2

I defied the same but when i add content to the Block its not showing on page ever i cleared the cache
any help

nobody click here