I’m an admin for a page and I want to give certain users dynamic control of the menubar layout. The ideal would be a page with a list with menu items and arrows pointing up and down with each item and when you click them the item is reordered. I have a pretty basic idea of how I can do it but I would like some suggestions.
The items are stored in MySQL and I only need help figuring out how the items should be ordered or numbered and how to re-order them. This probably needs some javascript trickery and I’m not familiar with JS.
You could use jQuery UI draggable to reorder them.
As for saving them into MySQL, simply have an
ordercolumn and save their position there.Then when retrieving the records, just add
ORDER BY 'order' ASCor similar (should be backticks).