18 May 2009 at 10:14pm
I am currently working on a site that requires translation and was hoping that when I added a translation to a page that has a image gallery attached or files associated with it then then these would remain associated with the translated page. i.e. if there is a page with 100 images in a gallery with a blurb above it then ideally i would just have to add a translation and not recreate the gallery.
How difficult would it be to add this customisation to translatable? Any points in the right direction?
We currently don't have support for excluding certain columns from being translated in the new datamodel. This includes columns like foreign keys to the image table. One way to work around this is to overload the getters and setters to query the original page instead.
24 May 2009 at 10:06pm
Thanks for that, I figured, since I'm only adding one language, that i would use an alternative method. So i created additional title and content fields on the page class then select them using the URL - based on the idea used here [url]http://doc.silverstripe.com/doku.php?id=recipes:multilingual_content[/url]