Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Upgrading SilverStripe

Ask questions about upgrading SilverStripe to the latest version.

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

2.4 insert link bug on other languages


Go to End
Reply

9 Posts   2059 Views

Avatar
ragunalth

19 May 2010 at 9:28pm Community Member, 14 Posts

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
Avatar
ragunalth

20 May 2010 at 11:27pm Community Member, 14 Posts

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

Avatar
heidgert

28 May 2010 at 8:37am Community Member, 16 Posts

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

Avatar
ragunalth

9 June 2010 at 8:13pm Community Member, 14 Posts

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

Avatar
dendeffe

24 June 2010 at 2:36am Community Member, 135 Posts

Seeing this as well. Pretty annoying problem.

Avatar
dendeffe

24 June 2010 at 2:51am Community Member, 135 Posts

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

Avatar
dendeffe

24 June 2010 at 3:40am (Last edited: 24 June 2010 3:41am), Community Member, 135 Posts

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.

Avatar
Ingo

23 July 2010 at 10:00am Forum Moderator, 801 Posts

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 :)

Go to Top