So, is there a benefit to having a region-name.tpl.php file as opposed to wrapping the region in page.tpl.php?

I notice Zen has the footer and sidebar with their own region templates, but the header, for example, doesn't have one.

If I add my own regions, for example, Search, what would warrant me to give it a region template?

Comments

johnalbin’s picture

Version: 7.x-5.1 » 7.x-5.x-dev
Status: Active » Fixed

The best use-case for a region template is when you want to use it for multiple regions. Otherwise a specific region template for a specific region is identical to just wrapping that region in page.tpl.

Status: Fixed » Closed (fixed)

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