Joomla后端菜单使用mysql按字母顺序重新排序
我一直在试图找出一种方法来重新排序我们现有的菜单,以便它按字母顺序排列。这个菜单有大约 500 个项目,并且严格用于 URL 结构,但我们还有另一个将使用 MenuLinks 的显示菜单,我们必须从后端的下拉列表中选择所有这些菜单,而且很难弄清楚。我一直在尝试创建一个 mysql 查询来执行此操作,但没有成功。
沿着这条线
UPDATE jos_menu set ordering = ordering+1 WHERE menutype = 'menu-name' ORDER BY name ASC
,但当然它不起作用。只是好奇是否有人已经弄清楚了这一点。
也许如果我操纵管理员显示下拉菜单(编辑菜单项时)以按字母顺序显示,这对于 0 级项目而不是其子项来说是一种做法。
I've been trying to figure out a way to re-order a menu that we have so it will be alphabetical. This menu has about 500 items and is strictly used for URL structure, but we have another display menu that will be using MenuLinks and we have to choose all of those from a dropdown in the backend and it's extremely hard to figure out. I've been trying to create a mysql query that will do it but have had no avail.
along the lines of
UPDATE jos_menu set ordering = ordering+1 WHERE menutype = 'menu-name' ORDER BY name ASC
but of course it doesn't work. Just curious if anyone has figured this out.
Maybe if i manipulate the admin to display the dropdown menu (when editing a menu item) to display alphabetically, which is kind of does for the Level 0 items but not its children.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以尝试的一种方法是:
HTH,Jochen
A way you could try is:
HTH, Jochen