Drupal功能包括主题 [英] Drupal Features include Theme
问题描述
是否可以在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.
理论上,如果要覆盖Feature中的某些标记(例如,您自己的内容类型的自定义tpl.php文件),您可以包含自定义tpl.php文件,并在Feature的模块文件中使用主题相关的钩子,让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屋!