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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Content Editor does not have access to create/edit pages in different language


Reply


2 Posts   952 Views

Avatar
swaiba

Forum Moderator, 1808 Posts

20 November 2009 at 11:19pm

Hi,

I have created a site that is multilingual, and when I login as an administrator I see the the two languages in the 'Language:' select (english and spanish) in the 'Site Content and Structure' left hand side bar.

I have created a user to create and edit the pages for the spanish site. Permissions are...

  • access to 'file & images' (assetadmin)
  • access to 'site content' (cmsmain)
  • access to all cms interfaces
  • control which groups can access or edit certain pages
  • access to 'model' (modeladmin)
  • access to 'comments' (commentadmin)
  • control which groups can access or edit certain pages
  • site

...and when I log in as this user I do not get the select instead it is fixed text stating 'Language: English (United Kingdom)' which is the opposite of what I want... I want him to either have the option or to default to creating, editing the spanish pages). I have tried editing the CMS language and the country of origin, but this just results in the the language of the CMS changing, not the option to edit pages for that locale.

Any help on this would be greatly appreciated!

Barry

Avatar
swaiba

Forum Moderator, 1808 Posts

21 November 2009 at 1:59am

To follow this up I have hacked a fix that within...

CMSMain.php
function LangSelector()

...to comment out the condition that checks for the 'VIEW_LANGS' permission on the user and always show the language select options.

I am still stumped how to assign this permission to the user using in the proper fashion (e.g. using the GUI)

Barry