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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba

attn uncle cheese - dataObjectManager bug?


Go to End


32 Posts   7147 Views

Avatar
klikhier

Community Member, 150 Posts

9 July 2009 at 4:43am

Commenting out one of the DOMs doesn't change anything... I can still drag/drop the ImageDOM, but not the remaining DOM.

Avatar
biapar

Forum Moderator, 435 Posts

9 July 2009 at 5:42am

Edited: 09/07/2009 5:46am

But in my Product Page , I don't see other DOM...
Using DOM ( $my_imagetable = new DataObjectManager ) the problem is the same...

http://localhost/ss/admin/EditForm/field/ImageAttachments/add give error 404 - not found with reason from SS: I can't handle sub-URLs of a CMSMain object.

Avatar
biapar

Forum Moderator, 435 Posts

9 July 2009 at 6:36am

Edited: 09/07/2009 6:42am

I found a post with the same problem:

http://www.silverstripe.org/dataobjectmanager-module-forum/show/261743?showPost=264378

But I don't understand how resolve the problem...

NB: the problem is present only if multilanguage site is enabled ( v.2.3.2 )

Avatar
klikhier

Community Member, 150 Posts

14 July 2009 at 8:54pm

Uncle Cheese have you been able to replicate my problem (not being able to drag/drop when ImageDOM + DOM + DOM are present on one page)

Avatar
wmk

Community Member, 87 Posts

19 August 2009 at 6:39pm

Did you use translatable? I had the same problem when my cms had translatable enabled in 2.3.3 (but not the dataobject in my case...)

The locale param wasn't sent by DOM, so i only could work with dataobjects / DOM in my default locale.

Made a patch for that, see http://open.silverstripe.org/ticket/4492 which is based on http://open.silverstripe.org/ticket/4435

you'll need both patches!

hope that helps ;)

Avatar
klikhier

Community Member, 150 Posts

20 August 2009 at 7:27am

Am offline this week. I'll have a look next week! Thanks for input!

Avatar
klikhier

Community Member, 150 Posts

25 August 2009 at 9:28pm

Sorry, had a clearer look at your comment, but I'm not using translatable, so I don't these patches would help. Recap:

1 ImageDOM and 2 DOM's in one class. All three DOMs are sortable:

SortableDataObject::add_sortable_classes(array('Characteristic','Reference','Photo'));

Problem: DOMs are not sortable, ImageDOM is sortable. Only after I completely remove the ImageDOM, the other DOMs are sortable again.

Hope you can have a look at this once more, many thanks in advance!!!

Avatar
UncleCheese

Forum Moderator, 4102 Posts

26 August 2009 at 1:44am

Please send me a ZIP of the Page class, and the three dataobjects it is managing. I'd like to get this figured out once and for all. Email it to me at aaroncarlino at gee mail.

Go to Top