Hi,
I've done quite a bit of themeing with D6, however I'm having some problems with regions in D7. I've read the documentation regarding the need to add render and page onto the php code, however it's still not working for me.
I'm using Danland as a base theme and I've created a front--page.tpl.php for my front page layout.
I've added the following to my danland.info file;
regions[front] = Front
regions[sidebar] = Sidebar
and I've added the following to my front--page.tpl.php file;
print render($page['front']);
print render($page['sidebar']);
The problem is that the region and/or CSS is showing up, however the region isn't showing up in the 'blocks' admin page, rendering it useless!
I'd be grateful if anybody knows where I'm going wrong!
Thanks.
Comments
Comment #1
danpros CreditAttribution: danpros commentedHi,
When configuring the block make sure if you choose your sub theme name on the list (top right). And since you adding new region then you must clearing the Drupal cache.
Dan
Comment #2
Adam Wood CreditAttribution: Adam Wood commentedHi danpros,
Thanks, it was the cache.
I can't believe I didn't try that, but I didn't think that the cache effected anything other than the caching of the rendered pages' HTML and CSS.
Thanks!
Comment #3
Adam Wood CreditAttribution: Adam Wood commented