Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
VM CreditAttribution: VM commentedhave you read = http://drupal.org/node/29139 ?
If so, where are you @ with regards to working with the examples provided?
Comment #2
bsherwood CreditAttribution: bsherwood commentedPixture (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?
Comment #3
VM CreditAttribution: VM commentedmy 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.
Comment #4
bsherwood CreditAttribution: bsherwood commentedSo 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
Comment #5
Jeff Burnz CreditAttribution: Jeff Burnz commentedAdd 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
Comment #6
bsherwood CreditAttribution: bsherwood commentedthanks for the help