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.

DataObjectManager Module

Discuss the DataObjectManager module, and the related ImageGallery module.

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

DataObjectManager & SS 2.3.2 (rc) & Translatable


Reply

5 Posts   3225 Views

Avatar
drx

4 June 2009 at 1:00am Community Member, 7 Posts

Hi there,

i run into some issues with DataObjectManager - especially FileDataObjectManager and ImageDataObjectmanager on translated pages with Silverstripe 2.3.2 (rc2).

It works fine for the original Page - the UploadForm shows up - but not for translated pages - it gives me "I can't handle sub-URLs of a CMSMain object." instead. This is pretty strange because the upload form url is exactly the same.

So I played around with the upload form url and added ?locale=en_US / de_DE etc. to it. This finally helped to load the form but the controllerID in DataObjectManager seems to point back to the original Page Object and not to the translated one...

Could please someone confirm that issue or have a working solution?
Is DOM (or the underlying TableListField) already adapted to the new translatable way?

Thanx in advance
drx

Avatar
drx

6 June 2009 at 10:05am (Last edited: 6 June 2009 10:09am), Community Member, 7 Posts

I finally found some time to break this down myself.

The problem: the Locale setting is not persistent on ajax calls and gets lost. I created a ticket for this issue: [url]http://open.silverstripe.com/ticket/4199[/url].

A quick fix can also be found there which patches the CMSMain.php.
This is for Silverstripe 2.3.2-rc2.

Hope this helps
drx

Avatar
biapar

9 July 2009 at 6:05am Forum Moderator, 435 Posts

I've the same error with 2.3.2

http://www.silverstripe.org/upgrading-silverstripe/show/256509?showPost=264360#post264360&flush=1
and
http://www.silverstripe.org/dataobjectmanager-module-forum/show/259806?start=24#post264374

Avatar
biapar

11 July 2009 at 1:38am Forum Moderator, 435 Posts

Any updates?

Avatar
biapar

1 September 2009 at 8:06am Forum Moderator, 435 Posts

Has been resolved this problem?