Drupal 功能包括主题 [英] Drupal Features include Theme

查看:28
本文介绍了Drupal 功能包括主题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在 Drupal 功能中包含主题?如果是这样怎么办?

Is it possible to include a theme in a Drupal Feature? if so how?

推荐答案

不幸的是,目前没有.功能基本上包括可以通过各种事件挂钩干净地导出和导入 Drupal 的东西.主题是完全不同的动物.

Not at the moment, unfortunately. Features basically consist of things that can be cleanly exported out of and imported into Drupal via various event hooks. Themes are an entirely different animal.

理论上,如果您想覆盖功能中的某些标记(例如,针对您自己的内容类型的自定义 tpl.php 文件),您可以包含自定义 tpl.php 文件并在功能的模块文件中使用与主题相关的钩子让 Drupal 知道模板在你的模块目录中.

Theoretically, if you want to override some markup in your Feature (custom tpl.php files for your own content type for example), you could include the custom tpl.php file and use theme-related hooks in the Feature's module file to let Drupal know that the templates are in your module's directory.

这篇关于Drupal 功能包括主题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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