Jump to:

7939 Posts in 1472 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » What exactly does "I can't handle sub-URLs of a CMSMain object" mean?

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 879 Views
  • MarcusDalgren
    Avatar
    Community Member
    288 Posts

    What exactly does "I can't handle sub-URLs of a CMSMain object" mean? Link to this post

    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.

    Kindly,
    Marcus

  • MarcusDalgren
    Avatar
    Community Member
    288 Posts

    Re: What exactly does "I can't handle sub-URLs of a CMSMain object" mean? Link to this post

    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?

  • UncleCheese
    Avatar
    4085 Posts
  • MarcusDalgren
    Avatar
    Community Member
    288 Posts

    Re: What exactly does "I can't handle sub-URLs of a CMSMain object" mean? Link to this post

    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.

    879 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.