Question on order of listings - setting default
10 posts by 3 authors in: Forums > CMS Builder
Last Post: April 4, 2011 (RSS)
By Codee - March 26, 2011
Re: [equinox69] Question on order of listings - setting default
By Jason - March 28, 2011
Here is how to get new record to go to the bottom of the list:
1) go into your section editor and erase the dragSortOrderField.
2)next, go directly back into your section editor and remove dragSortOrder from ListPage fields in the "General" Tab and from Order By in the "Sorting" Tab
3) add "createdDate ASC" to the Order By field
4) click "Save Details"
This will re-order all your records so the one created first will be at the top of the list. The newest record will always appear at the bottom.
Hope this helps.
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Re: [Jason] Question on order of listings - setting default
By Codee - March 28, 2011
Can't I have the best of both worlds? To have the newest item appear at the bottom of the list automatically and still be able to drag/drop the order of records? Isn't there a deeper setting somewhere that determines the placement of the most recently created record by default that can be changed? Thanks!
Re: [equinox69] Question on order of listings - setting default
By robin - March 29, 2011
The solution might be to just change the Order By field in the Sorting tab to:
dragSortOrder ASC
Hope that helps,
Robin
Programmer
interactivetools.com
Re: [robin] Question on order of listings - setting default
By Codee - March 29, 2011
HOWEVER, that will flip the 200 records I've already dragged into the order I want. So, I'll have to redrag all those, right?
Re: [equinox69] Question on order of listings - setting default
By robin - March 30, 2011
Unfortunately yes, you'll have to redrag then all because they will be reversed.
Robin
Programmer
interactivetools.com
Re: [robin] Question on order of listings - setting default
By Codee - March 30, 2011
Re: [equinox69] Question on order of listings - setting default
By robin - March 31, 2011
Hi,
The dragSortOrder is determined in the core database files. It is a bad idea to modify the core database files though, it can have unexpected effects beyond the section you want to modify. Also custom changes will be overwritten in an upgrade. We will look at adding dragSortOrder options in a future release. For now your best option for custom functionality like this would be to use a plug in. We can talk about writing one for you through consulting if you like.
Robin
Programmer
interactivetools.com
Re: [robin] Question on order of listings - setting default
By Codee - March 31, 2011
Re: [equinox69] Question on order of listings - setting default
By robin - April 4, 2011
Could you send an email into support@interactivetools.com and we'll see what we can do for you.
Thanks,
Robin
Programmer
interactivetools.com