I was wondering if someone could help me create an "above content" region. Basically a place where I can put blocks in above the content but still in the content box. I can't use the header box because it is outside of the content area and messes up the sidebar.

Thanks in advance.

Comments

VM’s picture

Assigned: gthing » Unassigned
Category: feature » support

have you read = http://drupal.org/node/29139 ?

If so, where are you @ with regards to working with the examples provided?

bsherwood’s picture

Pixture (at least the latest stable 5.x branch) does not have a regions function in the templates.php file. But it still shows regions.

Is the regions() function located elsewhere?

VM’s picture

my understanding if you add the regions function to template.php when you want to expand on teh regions already provided. The fact that there isn't a regions function tells me pixture uses drupals default regions which wouldn't require the function be placed in template.php until you choose to expand on default regions. This isn't any different than other themes which don't supply extra regions and as such don't use a regions function.

bsherwood’s picture

So if you do use the regions function, will you have to create it for the 'defaults' as well as any new region or can I simply add 'above content' to the regions and the defaults will also stay.

Thanks

Jeff Burnz’s picture

Add them for the defaults also, you are over riding a function so whatever you put in there become the defaults, if you get my drift.

http://api.drupal.org/api/function/phptemplate_regions/5

bsherwood’s picture

thanks for the help