In the .info file, there is a page_top region defined; however, it is not defined in page.tpl.php and doesn't appear in Admin->Structure->Blocks. Is this simply an oversight in the current version?
In page.tpl.php, is it intended to go after the <div id="header"> line, before the <php if ($logo): ?> block, and create a horizontal block at the top of and inside the header block?
Would this be the block where, for example, on the drupal.org homepage, the far top right menu ('Get Started', 'Community & Support', etc) occurs?

Comments

KrisBulman’s picture

Status: Active » Closed (works as designed)

It's in html.tpl.php in zen/templates. These regions are hidden by default, and work as designed.

See the handbook for more details: http://drupal.org/node/254940#closure This is a very common question.

The page_top and page_bottom regions are hidden, which means they will not show up on the blocks administration interface. When doing site-specific themes, it might also be useful to add more hidden regions (to provide ways for modules to add output to more places in the theme without defining blocks showing up on the blocks interface), you can do that via the regions_hidden[] .info file array which is new to Drupal 7:

theme .info file extract:

regions[content] = Content
regions[help] = Help
regions[page_top] = Page top
regions[page_bottom] = Page bottom
regions[indicators] = Indicators
regions_hidden[] = indicators
Mark_L6n’s picture

Thanks for the info! Perhaps it would be good to put a commented line in the STARTERKIT.info.txt file about this.

gisle’s picture

Title: page_top region missing in page.tpl.php? » Documentation says page_bottom is hidden, but this is not implemented
Version: 7.x-3.1 » 7.x-5.1
Component: PHP code » Documentation
Category: bug » task
Status: Closed (works as designed) » Active

The following now appear in the STARTERKIT.info.txt file:

; The page_top and page_bottom regions are hidden, which means they will not
; show up on the blocks administration page. But they are required in order for
; the html.tpl.php to work properly, so do not delete them.

However, only the page_top region is hidden. The page_bottom region is not.

Hence, there is a mismatch between the documentation and the implementation. Please clearify which one is correct.

echoz’s picture

Category: task » support
Status: Active » Fixed

In addition to the hidden regions "page_top" and "page_bottom", there is another region "bottom" which is available in the blocks interface. The potential confusion is that both the hidden regions[page_bottom] and the visible regions[bottom] are both *named* "Page bottom" ("named" meaning for the administrative view, for which only one is listed). You can see this in STARTERKIT.info.txt. In page.tpl.php you can see the region provided there is 'bottom'.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.