Jump to:

7940 Posts in 1543 Topics by 946 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Sortable data object breaks silverstripe

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 529 Views
  • Bronwyn
    Avatar
    Community Member
    16 Posts

    Sortable data object breaks silverstripe Link to this post

    Hi, I have an Awards object which has a many to many relationship to a staffpage, and a many to one relationship to an awardsholder. I am trying to make the object sortable, but whenever I put either of:
    (from http://www.ssbits.com/snippets/2010/a-data-object-manager-cheatsheet/)

    SortableDataObject::add_sortable_class('AwardObject');

    SortableDataObject::add_sortable_many_many_relation("StaffPage", "AwardObject");

    in mysite/ _config.php, it breaks the site when I rebuild it. Any help much appreciated.

    529 Views
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.