【问题标题】:Yootheme joomla template 2.5 remove content block in front pageYootheme joomla 模板 2.5 删除首页中的内容块
【发布时间】:2012-03-08 04:06:35
【问题描述】:

我设法在 yootheme joomla 2.5 中删除了首页的内容部分(内页仍然存在),经过几篇文章和教程后,我在代码中添加了以下内容:

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

<jdoc:include type="component" />

<?php endif;  ?>

代码被黑后,内容块被成功删除了首页文章,但该块仍然显示为空白框,但是我尝试在后端将系统输出设置选择为NO,但内容块无法从首页和内页显示,我怎样才能完全踢掉首页空白框?

请多多指教,谢谢!

【问题讨论】:

    标签: joomla frontpage


    【解决方案1】:

    使用 joomla 控制台的模块部分关闭此主题中的块,如果要删除带有文本气泡的默认首页徽标,这也在模块中,但可以在 yootheme 模板配置中关闭,也可以从您的 joomla 控制台访问。

    【讨论】:

      【解决方案2】:

      成功了:

      <?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; ?>
      

      【讨论】:

        猜你喜欢
        • 2012-07-31
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2014-10-14
        • 2013-06-28
        • 1970-01-01
        • 2012-07-05
        • 1970-01-01
        相关资源
        最近更新 更多