【问题标题】:Trying to add a region to Drupal 7 Skeleton theme尝试将区域添加到 Drupal 7 Skeleton 主题
【发布时间】: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 行)。

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

【问题讨论】:

    标签: drupal-7 region


    【解决方案1】:

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

    regions[marquee] = Marquee
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多