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   3289 Views

Avatar
drx

Community Member, 7 Posts

4 June 2009 at 1:00am

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

Community Member, 7 Posts

6 June 2009 at 10:05am

Edited: 06/06/2009 10:09am

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

Forum Moderator, 435 Posts

9 July 2009 at 6:05am

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

Forum Moderator, 435 Posts

11 July 2009 at 1:38am

Any updates?

Avatar
biapar

Forum Moderator, 435 Posts

1 September 2009 at 8:06am

Has been resolved this problem?