Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/joomla/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
joomla的其他菜单_Joomla_Joomla2.5 - Fatal编程技术网

joomla的其他菜单

joomla的其他菜单,joomla,joomla2.5,Joomla,Joomla2.5,我使用Joomla2.5,我创建了一个菜单来放入模块中 在我模板的索引中,我有以下内容 <div id="wrapper-header-left" class="column grid_6"> <?php if ($this->countModules('mod_imagenMenu')): ?> <jdoc:include type="modules"

我使用Joomla2.5,我创建了一个菜单来放入模块中

在我模板的索引中,我有以下内容

 <div id="wrapper-header-left" class="column grid_6">
                        <?php if ($this->countModules('mod_imagenMenu')): ?>
                            <jdoc:include type="modules" name="mod_imagenMenu" style="none"/>
                        <?php endif; ?>
                        <?php if ($this->countModules('mod_izquierdo')): ?>
                            <jdoc:include type="modules" name="mod_izquierdo" style="none"/>
                        <?php endif; ?>
                    </div>
                        <div id="wrapper-header-right" class="column grid_10">
                            <?php if ($this->countModules('mod_extranet')): ?>
                                <jdoc:include type="modules" name="mod_extranet" style="none"/>
                            <?php endif; ?>
                            <div id="Menu_Principal">
                                <ul class="menu">
                                    <?php if ($this->countModules('mod_menuPrincipal')): ?>
                                        <jdoc:include type="modules" name="mod_menuPrincipal" style="none"/>
                                    <?php endif; ?>
                                </ul>
                            </div>
                        </div>
但是当我呈现页面时,如果我把这一行放进去,我看不到菜单

<jdoc:include type="modules" name="mod_ar_menu" style="none"/>

在索引中,我显示了菜单副本


我的错误是什么,我可以把菜单放在模块里面吗?

你真的不应该那样调用模板中的特定模块,如果你不得不做出改变,这会让你的生活更加艰难。首先需要了解的是,模板中的index.php应该只包含模块位置。看起来应该更像这样-

<div id="wrapper-body" class="row">
        <jdoc:include type="modules" name="top" style="none"/>
        <div class="clr"></div>

        <div id="content" class="column grid_16">
        <jdoc:include type="modules" name="top-middle" style="none"/>
        <jdoc:include type="component" />
        <jdoc:include type="modules" name="bottom-middle" style="none"/>
        </div>
        <div class="clr"></div>

        <jdoc:include type="modules" name="left-column" style="none"/>
        <div class="clr"></div>

        <jdoc:include type="modules" name="right-column" style="none"/>
        <div class="clr"></div>

        <jdoc:include type="modules" name="bottom" style="none"/>
        <div class="clr"></div>
    </div>
        <?php if ($this->countModules('top')) : ?>
        <div id="top"><jdoc:include type="modules" name="top" style="none" /></div>
        <?php endif; ?>

此页面应用于创建网站的基本结构。如果您真的想变得有趣,您可以使每个模块位置可折叠,以便在特定页面上未使用的任何位置都不会输出任何代码。看起来像这样-

<div id="wrapper-body" class="row">
        <jdoc:include type="modules" name="top" style="none"/>
        <div class="clr"></div>

        <div id="content" class="column grid_16">
        <jdoc:include type="modules" name="top-middle" style="none"/>
        <jdoc:include type="component" />
        <jdoc:include type="modules" name="bottom-middle" style="none"/>
        </div>
        <div class="clr"></div>

        <jdoc:include type="modules" name="left-column" style="none"/>
        <div class="clr"></div>

        <jdoc:include type="modules" name="right-column" style="none"/>
        <div class="clr"></div>

        <jdoc:include type="modules" name="bottom" style="none"/>
        <div class="clr"></div>
    </div>
        <?php if ($this->countModules('top')) : ?>
        <div id="top"><jdoc:include type="modules" name="top" style="none" /></div>
        <?php endif; ?>

一旦确定了位置,现在就可以创建模块实例,并将它们指定给要在其中显示的位置以及要在其中显示的一页或多页。在扩展菜单中,单击模块管理器链接。在那里,您将创建新模块。在模块参数中,可以选择要在其中显示模块的模块位置。在此下方,您还可以选择要在其中显示模块的菜单项。您可以选择全部、无、排除选择,或仅在选择时选择


这样做可以很容易地管理您的模块。它允许您将多个模块放置在特定位置,然后选择它们在该位置中的顺序。例如,您可以将菜单模块、登录模块和图像旋转器模块全部放在左栏中。它还使您的代码更加简洁,因为您不必像您尝试的那样调用模块中的模块。这只会使您的站点难以管理,并且会降低性能。

您的
mod\u-ar\u菜单显示在哪里?
模块显示在哪里?Hi@Tornado我更改了我的文件,现在我有了这个mod\u-arq\u菜单(在mod\u-arquero中公开),一切正常,但是如何在de中显示菜单如果我没有错,您想在
中显示您的
mod\u arq
模块意味着在另一个模块中。好的@Tornado我解释得更好对不起。我有一个模块mod_arq,只在一页中显示。另一方面,我有一个菜单调用“Arq”Arq(在mod_arquero中是公共的),现在在default.php中我有一个div,我想要在div中的菜单,要做到这一点,我有这一行,但我看到了外面的菜单:/谢谢你的帮助,我感谢tanks@BrentFriar为你提供了很好的建议,但我仍然有同样的问题。首先,我创建了两个指向简单文章的链接的菜单。我想在“mod_izquierdo”中显示此菜单。将此菜单仅显示在第一页,以便在扩展菜单中,单击模块管理器链接。在那里你将创建新的模块,在弹出窗口中选择菜单,最后选择菜单1(在mod_izquierdo中为Public),它会显示链接,但在div之外。我的default.php文件正确吗?你有指向该站点的链接吗?听起来您的HTML中可能有错误。