试图在Drupal 7 Skeleton主题中添加一个区域

时间:2014-03-03 16:49:34

标签: drupal-7 region

我正在使用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行)。

我是否需要向任何其他文件添加更多代码才能显示此区域?

1 个答案:

答案 0 :(得分:0)

只需删除skeletontheme.info文件中的括号前的空格

regions[marquee] = Marquee