Page type field using localizations for setting dropdown list options values

Farah El Agha asked on January 2, 2018 15:50

I am using localization string for english and arabic language in my website, the Field "Type" has multi options so I would have to use a dropdownList, in the Data Source I filled the values:

{$Booklet$}...etc also I tried to use In-place localization: {$=Booklets|en-us=كتيبات|ar-lb=Booklets$}

The problem is in the Form tab when i try to fill the data for "Type" field I only find the values set for english language. What is the problem?

Correct Answer

Brenden Kehren answered on January 2, 2018 16:28

Using this macro you should be able to get what you're looking for.

{% GetResourceString("custom.Booklet", QueryString.culture) |(identity)GlobalAdministrator%}

This will get the string your looking for when you choose a different language and not worry about the language of the Kentico UI.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Ilesh Mistry answered on January 2, 2018 17:39

Also to go along with what Brenden has mentioned, are you trying to show only English items in the drop down for the English culture site and only show Arabic items in the drop down for the Aracbic culture?

Firstly, we're assuming you're using Kentico Cultures If this is the case, are you selecting the correct culture in the pages application/section for the 'Type' field?

Secondly, if the assumption is correct, can you provide us with some examples of the values your storing in the Localisation section as Resource Strings please?

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.