Using dragSortOrder

4 posts by 3 authors in: Forums > CMS Builder
Last Post: May 1, 2008   (RSS)

By InHouse - April 11, 2008

I like the idea of using the dragSortOrder feature but I'm having problems setting it up.

The docs say to create a field with the name 'dragsortorder' but do not say what type of field this should be. Flailing randomly has not made it work so I'm turning to the board for help.

Also, I'm assuming that the list view should have a line like:

$options['orderBy'] = 'dragSortOrder';

Any direction on this would be appreciated.

J.

Re: [InHouse] Using dragSortOrder

By Dave - April 11, 2008

It's case sensitive. Make sure the fieldname is 'dragSortOrder' and it will force you to use type 'none'.

I've made a note to improve the error checking to be case-insensitive for future versions.

Let me know if you need any more help with that.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Using dragSortOrder

By HDBC - May 1, 2008

Dave,
I've updated a client site from CMS 1.10 to 1.14.
I then went into an existing section and added a new field "dragSortOrder". I noticed I could not use the "quick add" function as it automatically changes the case to "dragsortorder" and that produces an SQL error when viewing the records in that section. The only way I could get this to somewhat work is to paste "dragSortOrder" into both the field label and field name in the Field Editor window.

This adds the "Drag" field to the list of records for the specific Section, but the up and down arrows aren't active. i.e. my cursor doesn't change into the four arrows icon and I can't drag anything.

I've tried adding both "dragSortOrder" and "dragsortorder" to the ListPage Fields and Order by section in the Section Editor's screen.

Any thoughts?