2012-03-08 75 views
0

我在yootheme joomla 2.5中設法刪除首頁(內頁仍然保留)的內容部分,經過幾篇文章和教程後,我將下面的代碼添加到代碼中:Yootheme joomla模板2.5刪除首頁上的內容塊

<?php 
$menu = & JSite::getMenu(); 
if($menu->getActive() !== $menu->getDefault()) : 
?> 

<jdoc:include type="component" /> 

<?php endif; ?> 

砍死的代碼後,內容分塊被成功取出了頭版文章,但塊仍然顯示爲空白框,但是我已經嘗試將系統輸出設定選擇NO在後臺,但內容塊無法從正面和內部頁面顯示,我怎樣才能將首頁空白框完全踢開?

請告知&謝謝!

回答

0

它的工作:

<?php 
$menu = & JSite::getMenu(); 
if($menu->getActive() !== $menu->getDefault()) : 
?> 
            <?php if ($this['config']->get('system_output')) : ?> 

              <section id="content" class="grid-block"> 

              <?php if ($this['modules']->count('breadcrumbs')) : ?> 
              <?php echo $this['modules']->render('breadcrumbs'); ?> 
              <?php endif; ?> 

              <?php echo $this['template'] >render('content'); ?> 

              </section> 

            <?php endif; ?> 
            <?php endif; ?> 
1

關閉塊中使用的Joomla控制檯模塊節這個主題,如果你想用文字氣泡刪除默認的頭版的標誌,這也是模塊,但可以在yootheme模板配置中關閉,也可以從您的joomla控制檯訪問。