Jump to:

1161 Posts in 2632 Topics by 409 members

Upgrading SilverStripe

SilverStripe Forums » Upgrading SilverStripe » 2.4 insert link bug on other languages

Ask questions about upgrading SilverStripe to the latest version.

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

Page: 1 2
Go to End
Author Topic: 2043 Views
  • ragunalth
    Avatar
    Community Member
    14 Posts

    2.4 insert link bug on other languages Link to this post

    Hi

    I have a website with multi languages. (English, Portuguese, Chinese)

    When I want to "insert a link" to my content on Portuguese/Chinese it only shows the default language links in the drop down tree, in this case English, in the past it used to list the pages from the current language.

    I need to know if this is a bug or if there is a setting to fix this.

    Thanks in advance.

    Attached Files
  • ragunalth
    Avatar
    Community Member
    14 Posts

    Re: 2.4 insert link bug on other languages Link to this post

    Please let me know if anyone have a fix for this problem.

  • heidgert
    Avatar
    Community Member
    16 Posts

    Re: 2.4 insert link bug on other languages Link to this post

    I'm also interrested in more information regarding this since I have the same problem. Devs?

  • ragunalth
    Avatar
    Community Member
    14 Posts

    Re: 2.4 insert link bug on other languages Link to this post

    Please help on the problem, is this a bug? and if so how do we get around this.

    I have installed clean versions of SS 2.4 and the same problem comes up, I can't imagine that anyone else did not pick this up. This is a huge problem for translatable websites

    Thanks in advance

  • dendeffe
    Avatar
    Community Member
    135 Posts

    Re: 2.4 insert link bug on other languages Link to this post

    Seeing this as well. Pretty annoying problem.

  • dendeffe
    Avatar
    Community Member
    135 Posts

    Re: 2.4 insert link bug on other languages Link to this post

    This works fine on an older 2.3.4 site I have running, btw.

  • dendeffe
    Avatar
    Community Member
    135 Posts

    Re: 2.4 insert link bug on other languages Link to this post

    Dio5 helped me out a bit on IRC.

    The code to build the link selector has changed from 2.3 to 2.4

    Saphire/forms/HTMLEditorField.php

    In 2.3.4:

    new TreeDropdownField('internal', _t('HtmlEditorField.PAGE', "Page"), 'SiteTree', 'URLSegment', 'MenuTitle'),

    In 2.4:

    $siteTree = new TreeDropdownField('internal', _t('HtmlEditorField.PAGE', "Page"), 'SiteTree', 'ID', 'MenuTitle', true);

    Not sure how to get it to load the correct pages, though.

  • Ingo
    Avatar
    Forum Moderator
    801 Posts

    Re: 2.4 insert link bug on other languages Link to this post

    This should be fixed with http://open.silverstripe.org/changeset/107390/ - can you confirm? Please file a bug (or comment on existing ones) for this stuff next time so its more likely to show up on our radar

    2043 Views
Page: 1 2
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.