Php 我无法在Drupal主题中显示标题区域
我没有看到drupal主题中标题区域的内容。在page.tpl.php中使用以下代码是最佳做法吗Php 我无法在Drupal主题中显示标题区域,php,drupal,drupal-theming,Php,Drupal,Drupal Theming,我没有看到drupal主题中标题区域的内容。在page.tpl.php中使用以下代码是最佳做法吗 <?php include('region--header.tpl.php'); ?> 将基本region.tpl.php文件复制到主题的templates文件夹中。 region--header.tpl.php文件和region.tpl.php文件应放在templates文件夹中 如果我很清楚的话,这个地区至少也需要显示一个区块,不是吗? <?php if ($page['he
<?php include('region--header.tpl.php'); ?>
将基本
region.tpl.php
文件复制到主题的templates文件夹中。
region--header.tpl.php
文件和region.tpl.php
文件应放在templates文件夹中 如果我很清楚的话,这个地区至少也需要显示一个区块,不是吗?
<?php if ($page['header']): ?>
<?php print render($page['header']); ?>
<?php endif; ?>
regions[header] = Header