Skip to main content
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
15 Posts 3430 Views
I've been using dataobject manager for a while now with no problem. On one particular site (SS2.3.3 dataobject r206) I have a problem with drag and drop.
On a page with a dataobject manager, I can see the checkbox to allow reordering. But when I click it, I am unable to drag anything around.
However! Drag and drop reordering works fine in the 'Files & Images' section.
I'm adding the manager the way I've done countless times before...
$fields->addFieldToTab("Root.Content.TestObjects", new DataObjectManager(
'Name' => 'Name',
Anyone have any ideas?
Okay - I've narrowed down the problem.
I have an ImageDataObjectManager (ImageDOM) field and a DataObjectManager (DOM) field in seperate tabs on a Page.
If the ImageDOM is added before the DOM then drag & drop wont work on the DOM. The DOM must be added to getCMSFields
Can anyone recreate this problem? Is this a bug?
I have heard this bug reported before, but I have never been able to replicate it. I'll do some more testing. I'm sure it's something simple.
Thanks Uncle Cheese - appreciate the help!
I'm also having problems adding more than one ImageDOM to a page. I get the error:
Fatal error: Call to a member function Icon() on a non-object in C:\wamp\www\palms\dataobject_manager\code\ImageDataObjectManager.php on line 70
Is is generally a bad idea to be adding more than one ImageDOM to a page?
No, that's an unrelated error. Sounds like you may have deleted the file associated with a record?
Hmm - well I cleaned out all records and then uploaded some new images but still got the error. It worked fine on normal pages which only have one ImageDOM, but the HomePage had two ImageDoms.
I modified the HomePage to use one ImageDOM and one DOM (with thumbnail) but I would've preferred to use two ImageDOM's.
Phew!... all these Dom-Dom-Dom's sound like ominous background music.
Hi again uncle,
I'm having more drag & drop woes. I'm using trunk version of DOM.
Now when I go to drag something in a DOM, the page just keeps expanding downwards. There's slightly different, but equally bizarre behaviour in the ImageDOM.
To fix I just uncommented DataObjectManager.php (line 72)
Must be some kindof incompatibilty in the sortable function between 1.5 and later versions? Sorry - I wouldn't know where to start if I wanted to update your jquery calls to the 1.7 versions. Perhaps you could point me in the right direction?