Jump to:

5537 Posts in 1737 Topics by 1223 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Link to "Page on the site" - shows only tree of default locale

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

Page: 1
Go to End
Author Topic: 965 Views
  • raZbi
    Avatar
    Community Member
    11 Posts

    Link to "Page on the site" - shows only tree of default locale Link to this post

    After upgrading to 2.4.0 got following issue: in the CMS, when trying to add link of type "Page on the site" in the "Page" dropdown shows only site tree in default ( Translatable::set_default_locale("en_US"); ) locale, no matter of page locale.

  • raZbi
    Avatar
    Community Member
    11 Posts

    Re: Link to "Page on the site" - shows only tree of default locale Link to this post

    Temporary solved with replacing TreeSelectorField.js with an older one, from rc2

  • pelse
    Avatar
    Community Member
    9 Posts

    Re: Link to "Page on the site" - shows only tree of default locale Link to this post

    Have the same Problem.
    What a bug...
    Problem is in file TreeSelectorField.js on Line 194 to 195.
    The selector

    var localeField = jQuery(this.ownerForm()).find(':input[name=locale],:input[name=Locale],:input[id=Form_EditForm_Locale]');


    localeField.val() on line 195 gives back an undefined.
    I have commend out both Lines and insert this one

    if($('Form_EditForm_Locale')) {ajaxURL += "&locale=" + $('Form_EditForm_Locale').value;}

    Now the tree is shown in the right language.

    965 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.