简体   繁体   English

Joomla菜单不显示标题

[英]Joomla Menu not displaying title

I was wondering if some people could help, I have this code in my template: 我想知道是否有人可以提供帮助,我的模板中包含以下代码:

<?php if ($this->countModules('quick_links_1')): ?>
    <jdoc:include type="modules" name="quick_links_1" />                        
<?php endif; ?>

I have also created a menu which I have assigned to that position in Joomla admin, and the menu is displaying fine. 我还创建了一个菜单,该菜单已分配给Joomla admin中的该位置,并且菜单显示良好。

In the menu configuration I have "Show title" set to "show" but, it is not displaying the menu heading. 在菜单配置中,我将“显示标题”设置为“显示”,但是它没有显示菜单标题。

Any ideas? 有任何想法吗? Also whilst I am on the subject, I cannot find the component (like com_content) for menus on the front end, I would like to be able to override the default display for menus so I can some extra HTML. 同样,在我从事这个主题的同时,我找不到前端菜单的组件(例如com_content),我希望能够覆盖菜单的默认显示,以便可以添加一些额外的HTML。 Could you point me in the right direction? 你能指出我正确的方向吗?

I am using Joomla 2.5. 我正在使用Joomla 2.5。

Thanks, 谢谢,

Ian 伊恩

I managed to fuigure it out in the end, it was the jdoc include: 我设法最终解决了它,它是jdoc包括:

<jdoc:include type="modules" name="quick_links_1" /> 

Which needs to be like this: 哪个需要像这样:

<jdoc:include type="modules" name="quick_links_1" style="xhtml" />

I ended up setting up my own modChrome in modules.php in the template folder. 我最终在模板文件夹的modules.php中设置了自己的modChrome。 For more information on this, have a look here: http://docs.joomla.org/Applying_custom_module_chrome 有关此的更多信息,请在此处查看: http : //docs.joomla.org/Applying_custom_module_chrome

And also as Javex says, there is no com_menu, it is in modules/mod_menu, I don't know why I didn't look in there! 而且正如Javex所说,没有com_menu,它在modules / mod_menu中,我不知道为什么我不看那里!

There is no "com_menus" for the frontend. 前端没有“ com_menus”。 You will want to look at "mod_mainmenu" in folder "modules". 您将要查看文件夹“模块”中的“ mod_mainmenu”。 Do a copy of that and rename your new one in the appropriate files. 复制该副本,然后在适当的文件中重命名新的副本。

In this process you could also check why it is not displaying your title by checking the source code. 在此过程中,您还可以通过检查源代码来检查为什么它不显示标题。 Maybe a modification (for whatever reason) has been made here. 也许在这里做了修改(无论出于何种原因)。

Furthermore, if you provide me with a url I may be able to look into the problem (maybe it is a display issue?). 此外,如果您向我提供一个网址,我也许可以调查问题(也许是显示问题?)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM