开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜