Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Drag and Drop


Go to End


3 Posts   991 Views

Avatar
Daris

Community Member, 6 Posts

11 July 2011 at 5:09am

I have a page with six video flv's I would like to be able to re order them as new ones are added so the newest is at the top How do I add this facility to silverstripe Thanks

Avatar
swaiba

Forum Moderator, 1899 Posts

11 July 2011 at 8:14pm

Well the only drag and drop I know is this one...
http://silverstripe.org/sortweight-module/

But if you just want the latest at the top then the DataObject that contains the stuff you can add a default sort..

$default_sort = 'Created DESC'; // or 'ID DESC';

hope this helps

Avatar
Daris

Community Member, 6 Posts

12 July 2011 at 5:39pm

swaiba,
Thank you so much for taking the time to reply That's what I wanted to know Many thanks once again Regards