Frontend not working / Error in Examples #52

hauntscare opened this Issue Jan 27, 2014 · 3 comments


2 participants


'Text', 'SortOrder'=>'Int' ); ``` private static $has_one = array( 'DedicatedTo' => 'Page' ); private static $default_sort='SortOrder'; ``` } PageSidebar.php 'TheTestObject' ); public function getCMSFields() { $fields = parent::getCMSFields(); $conf=GridFieldConfig_RelationEditor::create(10); $conf->addComponent(new GridFieldSortableRows('SortOrder')); $fields->addFieldToTab('Root.TestObjects', new GridField('TestObjects', 'TestObjects', $this->TestObjects(), $conf)); return $fields; } ``` } NO PHP Issues When trying to Drag&Drop it just selects the Text. Checking "Allow Drag&Drop" does not change anything. Clicking "Sorttoggle" does not change anything. ![image](

UndefinedOffset commented Jan 27, 2014

What version of SilverStripe are you using? Also are you using the latest master of SortableGridField? It looks like the javascript isn't loading which is odd and appears to be something caused in the SilverStripe framework master (aka 3.2.x).

If you are using composer please post your composer.json for your project.

Hey, i reinstalled using composer. Now everything Works. I can't reproduce the Error.

Thank you very much for the fast answering.

Another thing:
Please fix your "has_many Example".
TestObject needs a $has_one relation. Otherwise it wont work.


UndefinedOffset commented Jan 27, 2014

Ya I bet you were using the latest master of the framework, issue #51 seems to be similar to this. As for the example, they were written for 3.0.x so I'm not surprised. I'll update them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment