Hi there,
In omega 2.0 I created a new region which I rendered outside the grid system and it was working perfectly. However on my new site using the present version I am unable to do so. Here are the steps that I took:
1. in the .info file I typed
;custom Regions by Perry
regions[my_new_region] = My New Region
2. then I copied page.tpl.php file from the alpha theme folder and paste it in my theme templates folder.
3. I pasted the php code: print render($page['my_new_region']);
4. then in the zone configuration I chose "my new region" to force this region to be rendered and zone select list: none;

I am still unable to display my block.
where am I going wrong.

please help,
Thanks,
Perry.

Comments

fubhy’s picture

Your region won't be rendered if it doesn't have a zone. There is a work-around for your use-case. All the regions that are not being printed get placed in $page['#excluded']. You can use hook_page_alter() to move a region from there to the part of the $page array that gets forwarded to the templates.

$page['my_new_region'] = $page['#excluded']['my_new_region'];
fubhy’s picture

Status: Active » Closed (fixed)
prabhatjn’s picture

hi fubhy,

thank you for your response, just one small problem
I am getting this notice message:
Notice: Undefined index: equal_height in omega_alpha_preprocess_region() (line 25 of /var/www/html/multiinstall/liron/sites/all/themes/omega/omega/preprocess/preprocess-region.inc).
If you have any idea about it please let me know.

Couple of points for anyone else reading this post:
I could not avoid selecting width columns so I chose the highest width and then used css to override it.
on page.tpl.php my code is:

 $page['my_new_region'] = $page['#excluded']['my_new_region'];
print render($page['my_new_region']); 

Thanks,
Perry.

fubhy’s picture

Category: support » bug

This was in fact a bug. I was (obviously incorrectly) assuming that EVERY region has a zone. This is fixed now in the latest dev.

fubhy’s picture

Did that fix it for you?

prabhatjn’s picture

Hi Fubhy,

Yeah it is working without any problem...
Also I am able to remove the css hack now.
Thanks again.

Perry.