我正在使用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行)。
我是否需要向任何其他文件添加更多代码才能显示此区域?
答案 0 :(得分:0)
只需删除skeletontheme.info
文件中的括号前的空格
regions[marquee] = Marquee