HI All.
I'm running SS 3.0.8, and trying to make use of UndefinedOffset/SortableGridField
And getting "Unexpected token u GridField.js:83" when checking "Allow Drag and Drop". Anyone had similar issues or know of a fix/alternative?
My cms fields function looks like
...
if( $this->exists() ) {
$config = GridFieldConfig_RelationEditor::create(10);
$config->addComponent(new GridFieldBulkEditingTools());
$config->addComponent(new GridFieldBulkImageUpload());
$config->addComponent(new GridFieldSortableRows('SortOrder'));
$gridfield = new GridField( 'Products', 'Products', $this->Products() );
$gridfield->setConfig( $config );
// set display field
$columns = $gridfield->getConfig()->getComponentByType('GridFieldDataColumns');
$columns->setDisplayFields(array(
'Thumbnail' => 'Image',
'Label' => 'Label',
'UUID' => 'UUID'
));
$fields->replaceField( 'Products', $gridfield );
}
...