I just fired up D7 on Thursday, and I absolutely love it.
After playing around for a while, I decided to define my own custom regions in the .info file, but it doesn't seem like Drupal can recognize them in the page.tpl.php. They show on the blocks page, and I can assign content to them, but once I'm on the site, I get the errors
Notice: Undefined index: home_top in include() on line ### (path to custom page.tlp.php)
Notice: Undefined index: sidebar_first in include() on line ### (path to custom page.tlp.php)
In the info file, the regions are defined like this:
regions['header'] = Header
regions['home_top'] = Home Top
regions['sidebar_first'] = Sidebar First
regions['help'] = Help
regions['content'] = Content
regions['footer'] = Footer
...and in the page.tpl.php, the rendering in the regions is defined like this:
<?php if ($page['home_top']): ?>
<div id="home-top"><div class="section">
<?php print render($page['home_top']); ?>
</div></div> <!-- /.section, /#home-top -->
<?php endif; ?>
<?php if ($page['sidebar_first']): ?>
<div id="sidebar-first" class="column sidebar"><div class="section">
<?php print render($page['sidebar_first']); ?>
</div></div> <!-- /.section, /#sidebar-first -->
<?php endif; ?>
Is anyone able to see what I'm doing wrong?