向主题区域添加自定义代码 [英] Adding custom code to theme regions

查看:123
本文介绍了向主题区域添加自定义代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在主题的.info文件中创建了一个区域,并将该区域变量添加到 page.tpl.php 中。如果我想添加一些代码到这个地区,我该怎么做?

I've created a region 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分钟教程

Greetz,
J。

Greetz, J.

这篇关于向主题区域添加自定义代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆