【发布时间】:2013-06-18 21:07:26
【问题描述】:
我创建了模板 html-landing.tpl.php 并尝试将其包含在模板中,并在我的 template.phpenter code here
function myfuntion_preprocess_html(&$variables, $hook) {
$node = menu_get_object();
if ($node->nid == 60) {
$variables['theme_hook_suggestions'][] = 'html-landing';
} }
代码被调用,但使用的模板是标准的html.tpl.php。
有什么想法吗?
【问题讨论】:
标签: templates drupal-7 drupal-themes