7938 Posts in 1466 Topics by 943 members
|Go to End|
26 March 2010 at 9:27pm
Hello again UncleCheese!
So I've been stupid enough to try using Translatable on normal data objects and not just the SiteTree. Generally this actually works when used with a fix someone posted but in one scenario it breaks down. If I switch translations through the translation tab then DOM/CTF stops working.
What happens when you switch translation through the translation tab is that the URL becomes for example http://localhost/fkg/admin/show/26/?locale=en_US instead of just http://localhost/fkg/admin/?locale=en_US. Everything else I've checked seems to be ok (the locale is set properly for example) so I'm right now thinking it has something to do with the URL. I checked the URL on the iframe in the popup and it's the same URL as when it's working so I have no clue as to where to start looking.
Do these can't handle sub-URLs errors happen in some kind of central place that you can point me to or are they really hard to find/debug? If you can point me to the general area I would be more than happy to try to fix this, right now it feels kind of hopeless since I don't even know where to start.
26 March 2010 at 11:18pm
Ok so this seems really weird.
I discovered by mistake that the DOM starts working again if I press the page item in the left menu.
So it looks like this: Click on one of the existing translations under the Translations tab, get sent to something like http://localhost/fkg/admin/show/26/?locale=en_US. Trying to add/edit/remove items in the DOM doesn't work. Click the page item in the menu to the left and DOM works again.
Any ideas anyone?
27 March 2010 at 3:08am
Have you tried this patch?
27 March 2010 at 3:20am
Yes I'm running with that patch and everything works great except in this very specific scenario.
After mucking about for awhile it seems that this is a CMS issue and not a Translatable issue.
Take any SS installation, open up the admin section and click on a page item in the left menu.
After you've done that, hover over some other page item that has a DOM or a CTF on it and write that link in the URL directly (this is what Translatable does when you switch translations) and hit enter.
You'll get sent to the new page item but the DOM or CTF fails because it seems like other things don't get set properly. I'm right now leaning towards removing the offending links entirely from Translatable in order to get this working.
|Go to Top|