How to delete menu?
Closed this issue · 7 comments
The question in the title.
Good question. I don't have a working version of a site right now, but I'll look asap.
In the meantime, you can just move nodes outside of the viewable true to hide them temporarily
Apparently no one else has ever had this issue! But there is no way to do this.
For the time being the solution is to just move it under a node that is hidden. It's messy but it'll work.
go to your database and search for benfreke_menumanager_menus table, Just choose the menu you want to delete.
HI @captainmio , that would definitely work. But only if you have access to the DB and are comfortable making those changes. And you're not worried about the Nested Set order going out of whack.
Personally I think it's a perfectly valid question, and given everything is else is editable via the site admin the option to delete should be as well.
The trashcan icon at the bottom right of the form page seems to work to delete a menu item. When you delete a node, all of its child nodes seem to go with them (this is the nature of the NestedSet after all).
One UX improvement would be a to add the showCheckboxes: true
option in the /plugins/benfreke/menumanager/controllers/menus/config_list.yaml
and add a Delete selected
button in the /plugins/benfreke/menumanager/controllers/menus/_list_toolbar.htm
file.
I created a pull request with these changes so you can test them and merge if you think it is appropriate. Here it is:
Thanks @osmanzeki . I've been meaning to look at this for a while, it sounds like a good change.
Not sure why this wasn't automatically closed, but since the PR has been merged this has been fixed. Let us know if there are any further issues