Using ColdFusion, I'm trying to setup a menu and menu items application where you can change the order of the menu and also the menu items within the menu. I've found something relative, but it's not completely helping, http://wil-linssen.com/musings/entry/extending-the-jquery-sortable-with-ajax-mysql.
So if you view the demo there, that is essentially what I'd like to have, although with the sub items below each main item.
I guess what I'm having a hard time understanding is what to use in the database for a displayOrder column and then what the update would look like.
This is basically what I need to be able to do:
Basketball (category 1)
Shoes
Shirts
Socks
Baseball (category 2)
Bats
Balls
hats
I need to be able to change the order to whatever I wanted for both categories and their items so it could be:
Baseball (category 1)
Bats
Hats
Balls
Basketball (category 2)
Shirts
Socks
Shoes
I think the thing throwing me off is what's going in the displayOrder column of the database. I'm assuming their id, but then how would you correctly order by in the SQL?