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: [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?

Re: [HDBC] Using dragSortOrder

By Dave - May 1, 2008

Hi HDBC,

I've added a special case for the quick add for the next version. I've had to manually paste in the fieldname as well and it's a hassle.

In the editor record list does it show up as a grip graphic on the left edge? Adding dragSortOrder to the ListPage Fields and Order By should work.

Do you want me to take a look at it? Email me a CMS login to dave@interactivetools.com and I'll get it sorted out for you ASAP.
Dave Edis - Senior Developer
interactivetools.com