Forums
This topic is locked
Modify order of menu items
Posted 28 Oct 2005 16:35:13
1
has voted
28 Oct 2005 16:35:13 Johan Arvidsson posted:
Hello,I would like to ask if someone knows how to create a wysiwyg-function to order menu items through a form on a cms-page. The menu items are placed in a database with one menu item per row. I would like a way to sort them with drag-and-drop or with up/down arrows. Or maybe you know where I can fund such a module or extension?
Thanks,
Johan
Replies
Replied 29 Oct 2005 13:45:49
29 Oct 2005 13:45:49 Dave Thomas replied:
without having to recode anything major you can have a column in the db table for 'myOrder' or similiar.
have this as an INT and give each record a number corresponding to their position in the menu.
then in the SQL order by 'myOrder'.
that's how quite a few modules position their forums sections etc..
regards
Dave Thomas
<b>DMX Zone Manager</b>
have this as an INT and give each record a number corresponding to their position in the menu.
then in the SQL order by 'myOrder'.
that's how quite a few modules position their forums sections etc..
regards
Dave Thomas
<b>DMX Zone Manager</b>