0

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

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

<jdoc:include type="component" />

<?php endif;  ?>

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

请指教,谢谢!

4

2 回答 2

1

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

于 2012-04-25T13:47:46.357 回答
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; ?>
于 2012-03-11T13:50:09.537 回答