UncleCheese et all:
For some reason I can't get one of my dataobjectmanager to drag and drop. When I hit the checkbox, and hover over the items, it shows the cursor as if it wants to reorder - but they just stay stuck. All of the other dataObjectManager items on this site are sortable - just not this one!
Any ideas what might be going on?
I have this in _config.php:
SortableDataObject::add_sortable_class('RelatedLink');
And here is RelatedLink.php
<?php
class RelatedLink extends DataObject
{
static $db = array (
'Title' => 'Text',
'Address' => 'Text'
);
static $has_one = array (
'Page' => 'Page'
);
public function getCMSFields_forPopup()
{
return new FieldSet(
new TextField('Title'),
new TextField('Address')
);
}
}
?>
And the part in Page.php
$fields->addFieldToTab("Root.Content.RelatedLink", new DataObjectManager(
$this,
'RelatedLinks',
'RelatedLink',
array('Title' => 'Title','Address'=>'Address'),
'getCMSFields_forPopup'
));