简体   繁体   English

自定义Joomla子菜单

[英]Customizing a Joomla submenu

Is it possible to customize a Joomla submenu? 是否可以自定义Joomla子菜单? This article talks about submenu items: http://docs.joomla.org/Tutorial:Creating_a_submenu 本文讨论了子菜单项: http : //docs.joomla.org/Tutorial : Creating_a_submenu

What I need to do is create the submenu items with additional DIVs and other HTML elements around them and have them appear elsewhere on the page (not directly under the main menu). 我需要做的是创建带有附加DIV和其他HTML元素的子菜单项,并使它们出现在页面的其他位置(而不是直接位于主菜单下)。 In Advanced Module Parameters, you can put "_menu" in Module Class Suffix to add CSS but how do you add DIVs and other HTML elements to create a custom submenu? 在“高级模块参数”中,可以在模块类后缀中添加“ _menu”以添加CSS,但是如何添加DIV和其他HTML元素来创建自定义子菜单?

Thanks. 谢谢。

我认为您可以从此处下载一些菜单扩展名: http : //extensions.joomla.org/search?q= menu。

[http://www.learnwebdesignonline.com/cms/customizing-joomla-templates.htm][1] [http://www.learnwebdesignonline.com/cms/customizing-joomla-templates.htm][1]

I don't know how much you know about Joomla so I'm gonna start you off with this link to show you where you can access the HTML. 我不了解您对Joomla的了解,所以我将通过此链接向您介绍如何向您展示可以访问HTML的地方。

If you use Mozilla Firefox I highly recommend getting an add-on called "Firebug" so you can inspect a website that runs Joomla and has a customized menu with sub-menus to get a glimpse of how the HTML is structured for their menu. 如果您使用Mozilla Firefox,我强烈建议您获取一个名为“ Firebug”的加载项,这样您就可以检查运行Joomla并具有带子菜单的自定义菜单的网站,以快速了解其菜单的HTML结构。 If they have what you're looking for. 如果他们有您想要的东西。 To have the submenus show up elsewhere on the page it really depends on where you want them to show up. 要使子菜单显示在页面上的其他位置,实际上取决于您希望它们显示在哪里。

You may have to setup a menu with submenus on each and every page in the specific sections you need to put them. 您可能需要设置一个菜单,在特定部分的每一页上都需要有子菜单才能放置它们。 However at that point all you have to do is just add the link of where the submenu would take you and place it wherever you want in the page. 但是,此时您只需要添加子菜单将您带到何处的链接,并将其放置在页面中的任何位置即可。

Hope this helps but if not could you elaborate on where and how you want to create submenus in separate areas of the page? 希望这会有所帮助,但如果不能,那么您能否详细说明在页面的各个区域中在何处以及如何创建子菜单? I'm a little confused otherwise. 否则我有点困惑。

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

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