Adding custom code to theme regions
I've created a regio开发者_运维问答n in my theme's .info file, and added the region variable to page.tpl.php
. If I want to add some code to this region, how do I do it?
Short answer: you use the region name you declared in your info file as a variable in your template files.
Long answer: here is an excellent video on how to do theming. The whole region system is explained in this video, and a lot more.
http://acquia.com/community/resources/acquia-tv/tips-and-tricks-drupal-theming-90-minute-tutorial
Greetz, J.
精彩评论