I am trying to order my menu items in a specific order in the JS Toolbar Configuration Menu. But when I save the module and check the frontend, the menu items are re-ordered from A-Z, instead of the order I entered them in the module.
How can I have the menu items appear in the order I set them?
Thank you for contacting us.
You need to change order of menu items in you menu - order of added menu items in module doesn't matter.
The way the JS Toolbar module settings are, you don't select a menu, instead you enter one by one which menu items you want. When I select the menu items in the order I want to have them appear on the frontend, they change when I click "save."
See my screenshots of before and after I click "save."
You only add menu items to display - that field do NOT set menu item in order.
The only way you can set their order is you menu in Backend -> Menus -> You menu.
Okay, let me know if this will work. Try to use menu item aliases.
Thank you Michal for your suggestion.
I was able to get the menu items in the order that I wanted by creating a Menu just for the gear icon and then creating menu items in that menu and in the order that I want them. So when I entered the menu items in the module settings, they stayed in the same order when I saved it.
So for anyone else (reading this post) who just chooses menu items from different menus, please note that your menu items will be ordered by alphabet when you save your module settings.
Thank you for checking this.