As many Drupal developers will know, Drupal 4.7 will include support for multiple regions into which blocks and other content can be rendered.

Multiple regions opens up a lot of space for creativity--but we'll need to get going if we're going to take advantage of the possibilities. So far (judging by what's in contrib), we haven't begun to scratch the surface. Everyone who maintains or contributes to a theme should look at what they can be doing with regions.

This handbook page introduces regions in themes, and links to specific pages on upgrading themes and working with regions in plain and phptemplate themes.

Khalid also gave a useful tutorial on how to create and customize additional regions.

I'm hoping we can do two things with 4.7 themes:

1. Improve the display of existing regions. Phptemplate includes 5 regions by default: left, right, content, header, and footer. As things stand, these will all look like the existing left and right regions--which often won't work, e.g., because they're too wide. Theme designers will want to customize the look of these regions. Khalid's tutorial is a good start here.

2. Create and customize additional regions. The five regions implemented in phptemplate are only a start--and, of course, plain PHP themes don't even have these. Again, look at Khalid's tutorial to see how easy it is to add new regions, anywhere on the page.

Need help getting going? Have suggestions for others? Please post here any questions, comments, or suggestions you have about how to implement regioning.

Comments

kbahey’s picture

What would be cool is if we can :

1. have an option for each block region, where we can saw "raw" or "default". By default, I mean that the block would have a header, and divs that could be themed. By raw, I mean just the contents of the blocks with no embelishments.

2. have a way to have several versions of page.tpl.php. One for the front page, another for sections, and another for nodes. The front can be done by using the front_page module, but it is best to have a phptemplate solution. This would allow things like a front page that has custom blocks on it in the center area, and not just in the sidebars (e.g. recent articles, latest comments, featured articles, ....etc). This could be replicated for different areas of the site.

If the above can be done without the hoops I had to do in block.tpl.php, it would be really neat.
--
Drupal development and customization: 2bits.com
Personal: Baheyeldin.com

--
Drupal performance tuning and optimization, hosting, development, and consulting: 2bits.com, Inc. and Twitter at: @2bits
Personal blog: Ba

eeeb’s picture

Nedjo,

I really like you ideas about moving beyond the 5 regions of phpTemplate and into something more creative. Thanks for posting all the wonderful links. I hope to create something awesome with all this info very soon at cbusimc.org and rootsnetwork.org

Stay Funky,

Erik B Ebright