In this article, we'll look at how to change the order of the items in the MODX TOP menu, and its dropdown menus.
Maybe you don't like the order of the items in the MODX Top Menu or its dropdown menus. Maybe you want the Reports menu to come first, or you want to move the Clear Cache option out of the dropdown menu and put it on the top line, or you've added a custom menu item that lets you edit a particular page
This is an easy one. Just go to the Menu section at System (gear icon) -> Menus. Then click and drag the menu items to their desired locations.
There's Always a Catch
The catch here is that whenever you upgrade MODX or run setup again, the menu items will go back to their default locations. If you've just moved one or two, this isn't a big deal, but if you've made extensive changes to the menus, it can be fairly annoying. There's a way around this problem, though. A long time ago, I wrote a couple of utility snippets, one to save the menu structure to a file, and one to restore it from the file. You can get the code for the two snippets here.
The code is quite old, but I think it will still work. If not, let me know and I'll try to find time to rewrite it.
In the next article, we'll look at how to display the date (and optionally the time) when a resource was last updated.
Looking for high-quality, MODX-friendly hosting? As of May 2016, Bob's Guides is hosted at A2 hosting. (More information in the box below.)