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) |(user)zbynekh|(hash)780647d03a43bb6e1d7d40db9fd190cd32212171e323b32547c3c876c841ff3c%} {% GetResourceString("custom.Newsletter", QueryString.culture) |(user)zbynekh|(hash)9af6997ce72a0d6deb6c44807c865f70200eb7bdbede0241d236ce69e54190c0%} {% GetResourceString("custom.Pamphlet", QueryString.culture) |(user)zbynekh|(hash)ff829ce55cbb4a4aef481ee4176e3e44357e19f7673172c1c1aaffbd53334b08%}

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.