Hello all, i'm searching how i can make new regeions inside drupal 6.. .

i know its in drupal 5 like this in template.php:

function ashladan_regions() {
return array(
'left' => t('left sidebar'),
'right' => t('right sidebar'),
'content' => t('content'),
'content_top' => t('content top'),
'content_bottom' => t('content bottom'),
'header' => t('header'),
'voet' => t('voet'),
'recent_nodes' => t('recent_nodes'),
'area6' => t('area6'),
'area7' => t('area7')
);
}

but how is it in 6??

Comments

jabba_29’s picture

It's in the info file. Saw example on this site of course, but no bookmark :o
It will be in the handbook - just need to search. Example:

regions[left] = Left sidebar
regions[right] = Right sidebar
regions[header] = Header
regions[pre_content] = Pre content
regions[content] = Content
regions[footer] = Footer

You must include existing regions in there if you are going to add your own...

Regards

Jamie

skiFFie: home of the accessibility module

demon326@drupal.org’s picture

thx!!, thats all the info i needed...

portfola’s picture

Hi, I'm also trying to create a "pre-content" region using Drupal 6.0. I'm using the Garland theme. I tried copying the above into garland.info but there is still no "Pre-Content" region selection available for my blocks. What to do?

portfola’s picture

I solved it. After uploading .info file, I had to go to admin>site building>themes for the system to recache the .info file. Otherwise it doesn't know it's been changed.

Working fine now :-)

Ardandil’s picture

This exactly the informatioan I was searching for!
Thanks!