Virtuemart Joomla 菜单突出显示错误的项目
我在 Joomla 1.5 上安装了 Virtuemart 1.1.7a。我们使用 Joomla 菜单作为商店侧菜单。此菜单中并未列出每个类别(仅“父”类别,没有子类别)。当用户导航到子类别(即不在列表中的子类别)时,它会从侧面菜单中突出显示错误的类别。您可以在以下位置查看:
http://www.lochlomond-trossachs.org/books.html
并选择“本地作者”。然后菜单项“明信片”在左侧突出显示。
最好是 a) 不突出显示任何类别或 b) 突出显示“书籍”(这是“本地作者”的父类别)。
我在 VM 论坛和整个网络上查看了 VM 中 Joomla 菜单的问题,但绝大多数结果与早期有关 Itemids 加载错误产品的问题有关,但这里的情况并非如此。只需修复亮点就足够了!
I have a Virtuemart 1.1.7a install on Joomla 1.5. We're using a Joomla menu as the shop side menu. Not every category is listed in this menu (only the 'parent' categories, no subcategories). When users navigate to a sub category (i.e one not in the list) it highlights the wrong category from the side menu. You can see this on:
http://www.lochlomond-trossachs.org/books.html
and selecting 'Local Authors'. Then menu item 'Postcards' is highlighted on the left.
It would be preferable to either a) highlight no category or b) highlight 'Books' (which is the parent category of 'Local Authors').
I've had a look on the VM forums and web at large for issues with Joomla menus in VM, but the vast majority of results relate to an earlier problem regarding Itemids loading the wrong products ,but this is not the case here. Simply fixing the highlight would suffice!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
是的,viritymart 对此有问题。除非您想深入研究 Virtuemart 代码(这可能需要很长时间才能找到处理 Itemid 的代码),否则我建议在其父类别下添加额外的菜单项。如果您不希望这些可见,您可以转到菜单模块并设置菜单的深度。现在,右父级将被突出显示,因为它的根中有一个子级。
Yes, virtuemart has issues with this. Unless you want to dive into the Virtuemart code (which can take you a long time to find the code dealing with the Itemid), I would recomment to add extra menu-items under the category that is it's parent. If you don't want these to be visible, you can go to the menu module and set the depth of the menu. The right parent would now be highlighted, because it has a child in it's roots.
以下内容可能会有所帮助:http://forum.virtuemart.net/index.php?主题=70482.0
Here is something that might help: http://forum.virtuemart.net/index.php?topic=70482.0
我没有看到“本地作者”,但我看到了“礼物”的问题(例如,当我单击“礼物”,然后单击“杯子”时,我会突出显示明信片)。我认为问题要么出在您的模板中,要么出在您的数据本身中。
I didn't see "Local Authors", but I saw the problem with Gifts (when I click on Gift, and then on Mugs, for example, I have postcards highlighted). I believe the problem is either in your template or in your data itself.
尝试重新制作所有菜单按钮,如删除并创建新按钮。
Try to remake all the menu buttons as in delete and create new ones.
事实证明,使用 Joomla 菜单来显示 VM 类别的效果并不那么好。将 Joomla 菜单替换为 VM 菜单(即 mod_virtuemart),并设计了适合的样式。
Turns out using Joomla menus for VM categories just doesn't really work that well. Replaced Joomla menu with VM menu (i.e. mod_virtuemart), and styled to suit.