Jump to:

23452 Posts in 18901 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » 2.4 Many_Many Sort Order + Drag and Drop

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

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

Page: 1
Go to End
Author Topic: 266 Views
  • lozhowlett
    Community Member
    146 Posts

    2.4 Many_Many Sort Order + Drag and Drop Link to this post

    Hi All

    We have a site on 2.4 and the client requires the ability to sort order products within categories using drag and drop.


    //Relate to the category pages
       static $belongs_many_many = array(
          'Categories' => 'CategoryPage'


    static $many_many = array(
    'Products' => 'Product'

    I cant think of a way to add in drag and drop sort order on this, fine with one-to-many, but not sure there is a way to do this in 2.4?

    Any help would be great, thanks.

  • Devlin
    Community Member
    215 Posts

    Re: 2.4 Many_Many Sort Order + Drag and Drop Link to this post

    I think Uncle Cheese's ManyManyDataObjectManager has a dynamic sort method with a drag and drop feature. Dunno how well it works, but maybe you give it try.

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.