内页动态菜单表
我想根据主页上的选项卡在内页中添加动态菜单表。 如何在 joomla 中做到这一点,请帮助我。
I want to add dynamic menu table in inner pages based upon the tabs on the home page.
how to do that in joomla,please help me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
听起来您正在尝试创建一个拆分菜单,其中您在顶部单击的链接确定显示在列/下方的菜单。这是 Joomla 菜单的本机行为,只需在菜单模块中设置开始和结束级别即可。这是一个很好的教程 -
http ://www.theartofjoomla.com/magazine/article/27-more-menu-tricks-the-split-menu-technique.html
It sounds like you are trying to create a split menu where the link you click at the top determines the menu that shows up in a column/below. This is the native behavior for Joomla menus simply by setting the start and end levels in the menu module. Here is a good tutorial -
http://www.theartofjoomla.com/magazine/article/27-more-menu-tricks-the-split-menu-technique.html
注意:: Joomla 中的分层菜单功能仅在拆分等于两个级别时才起作用。如果您想使用跨 3 个或更多级别的单个主菜单来构建站点,那么这是行不通的。看起来 Joomla 的内部不知道如何在生成菜单时正确跟踪父级(不太确定)(可能有点夸张)。级别 1:1 有效,级别 2:2 有效,但当您尝试指定从级别 3 开始的菜单时,它会崩溃。就我而言,我破解了菜单来检查路径(面包屑)列表并从中获取我想要的内容,以便我可以确定第 3 级(或其他)项目的真正父级。然后我就可以正确生成项目。 Joomla (v1.7) 的这一点令人失望。除此之外,您还必须进一步破解以确保从 1 开始的每个菜单项实例都正确突出显示。也许菜单应该与面包屑路径列表更紧密地结合。
Beware:: The split level menu feature in Joomla only works when the split equals TWO levels. If you want to build your site with a single master menu that spans 3 or more levels, this does not work. It looks like the internals of Joomla do not know how to track the parent properly (not really sure) when the menus are generated (probably an overstatement). Level 1:1 works, Level 2:2 works but then when you try to specify a menu starting at level 3, it breaks. In my case, I hacked the menu to check the pathways (breadcrumbs) list and derive what I wanted from it so I could determine the real parent of the items at level 3 (or other). Then I could get the items to generate proper. This was a disappointment in Joomla (v1.7). And then on top of this, you would then have to hack further to ensure that each menu item instance starting at 1 is highlighted proper. Perhaps the menus should be more closely coupled to the breadcrumbs pathway list.