Drupal 7 尝试向Drupal 7骨架主题添加区域
我正在使用Drupal7中的骨架主题。我在skeletonheme.info文件中添加了以下内容:Drupal 7 尝试向Drupal 7骨架主题添加区域,drupal-7,region,Drupal 7,Region,我正在使用Drupal7中的骨架主题。我在skeletonheme.info文件中添加了以下内容: regions [marquee] = Marquee 这在page.tpl.php文件中,我希望该区域位于其中 <?php if ($page['marquee']): ?> <div class="marquee"> <?php print render($page['marquee']); ?> </div>
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\skeletonheme\templates\page.tpl.php的第107行)
我是否需要向任何其他文件添加更多代码才能显示此区域?只需在
skeletonheme.info
文件中删除括号前的空格
regions[marquee] = Marquee