【发布时间】:2014-03-03 16:49:34
【问题描述】:
我正在使用 Drupal 7 中的 Skeleton 主题。我已将以下内容添加到skeletontheme.info 文件中;
regions [marquee] = Marquee
这在 page.tpl.php 文件中我希望该区域所在的位置;
<?php if ($page['marquee']): ?>
<div class="marquee">
<?php print render($page['marquee']); ?>
</div>
<?php endif; ?>
我清除了缓存,并重新加载了页面,但仍然收到以下消息;
注意:未定义索引:include() 中的选取框(C:\xampp\apps\drupal\htdocs\sites\all\themes\skeletontheme\templates\page.tpl.php 的第 107 行)。
是否需要向任何其他文件添加更多代码才能显示该区域?
【问题讨论】: