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.

Customising the CMS /

Dragable sort in model admin


Reply


6 Posts   1699 Views

Avatar
tbilyn

Community Member, 9 Posts

17 June 2011 at 10:58pm

Hi guys,
I need a help

I have model admin manage StoryPage page type.
I need to make available to sort pages by dragging them in the model admin search results.

How to do this? Can you help me?

Avatar
swaiba

Forum Moderator, 1804 Posts

18 June 2011 at 4:30am

not in the search results, however if these were displayed in a has_many... this might help...

http://silverstripe.org/sortweight-module/

Avatar
tbilyn

Community Member, 9 Posts

23 June 2011 at 8:50am

Thanks, swaiba
I found a way how to use sortweight-module for my needs
thanks a lot

Avatar
szpak

Community Member, 1 Post

12 August 2011 at 7:55pm

Hi,

Can you share the info how you used sortweight module for dragable sorting outside of the N:x relation?

I'm looking for a way for a client to reorder the DataObject in ModelAdmin list. It must by as simple as possible. Some kind of drag will be the best.

Avatar
Pipifix

Community Member, 54 Posts

9 March 2012 at 1:40am

Hi,

I'm interested in this info, too. I got an dataobject (items n<700) in ModelAdmin. Thats way too much to sort by hand. Thanks…

Avatar
swaiba

Forum Moderator, 1804 Posts

9 March 2012 at 1:45am

Actually sort wieght ended up being a dead end... but https://github.com/ajshort/silverstripe-itemsetfield does the job perfectly