2014-03-03 59 views
0

我正在Drupal 7中使用骨架主題。我已將以下內容添加到skeletontheme.info文件;試圖添加區域到Drupal 7骨架主題

regions [marquee] = Marquee 

和這在page.tpl.php文件中我想要的區域;

<?php if ($page['marquee']): ?> 
    <div class="marquee"> 
     <?php print render($page['marquee']); ?> 
    </div> 
<?php endif; ?> 

我清除了緩存,並重新加載了頁面,但仍收到以下消息; ()(C:\ xampp \ apps \ drupal \ htdocs \ sites \ all \ themes \ skeletontheme \ templates \ page.tpl.php中的第107行)。

我是否需要將任何更多的代碼添加到任何其他文件以使該區域出現?

回答

0

只是刪除skeletontheme.info文件括號前空格,

regions[marquee] = Marquee