开发者

Adding custom code to theme regions

开发者 https://www.devze.com 2023-01-30 11:04 出处:网络
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 regi

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号