7911 Posts in 1354 Topics by 930 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » Sortable data object breaks silverstripe
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 312 Views |
-
Sortable data object breaks silverstripe

22 March 2012 at 2:02pm Last edited: 22 March 2012 2:02pm
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.
| 312 Views | ||
|
Page:
1
|
Go to Top |

