7919 Posts in 1358 Topics by 932 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » DOM + ImageDOM breaks drag and drop reordering on DOM
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: | 1553 Views |
-
DOM + ImageDOM breaks drag and drop reordering on DOM

18 November 2009 at 12:19pm Last edited: 18 November 2009 12:21pm
Hi Uncle Cheese
I appear to have found a strange bug whereby if you use an image DOM and a normal DOM on the same page, the drag and drop reordering on the normal DOM does not work. As soon as I change the ImageDOM to a FileDOM it then the normal DOMs re-ordering starts working.
When I say it doesnt work, you can check the box and as you hover over the items you get the multi directional arrow, but when you try to drag them it does nothing. I assume it must be a JS conflict of some sort?
What is strange is that I am also running the image gallery which has a normal DOM for albums and a ImageDOM for images yes seems to work fine....
Many thanks
Aram
-
Re: DOM + ImageDOM breaks drag and drop reordering on DOM

8 December 2009 at 10:37pm
I also ran into this problem again today. Situation:
Page.php with ImageDOM
HomePage.php extends Page.php and adds DOMSortableDataObject::add_sortable_class('Photo'); in _config.php
SortableDataObject::add_sortable_class('HomePageLink'); in _config.phpNow with this setup I was not able to reorder the DOM on the HomePage page type.
Solution (work-around):
I removed the ImageDOM in Homepage.php:
$fields->removeByName("Images");
Now I was able to reorder the DOM on the HomePage page type.
-
Re: DOM + ImageDOM breaks drag and drop reordering on DOM

27 January 2010 at 12:27am
Found solution. Drag-and-drop ONLY seems to break if ImageDOM tab is added before DOM tab. If ImageDOM is added after normal DOM everything seems to work fine:
public function getCMSFields() {
$fields = parent::getCMSFields();// Add DOM tab
// Add ImageDOM tab
return $fields;
} -
Re: DOM + ImageDOM breaks drag and drop reordering on DOM

27 January 2010 at 2:37am
This was fixed a few revs ago. See "OMG New Stuff" thread.
-
Re: DOM + ImageDOM breaks drag and drop reordering on DOM

29 January 2010 at 12:31am
Ok, use latest version now. Many_many thanks!
| 1553 Views | ||
|
Page:
1
|
Go to Top |


