1

So I have a field, where I can change the font color of some text on the hero image inside of Sitecore 8.1. Let's say you can choose between black and white. Now if I choose a color in the English version of the hero image, it is all working but if I add a german language version and there choose the color for the text, then there it is not working. I could figure out that this is because there is no german version of the black and white item which has the template Class Definition. So I tried to add the German version for this item and then it worked like expected and desired.

Next problem: I don't want to add the German version for all the items and in future do this for all the languages that are coming. Then I figured out that there is something like a language fallback and I tried it.

  • In the Sitecore.LanguageFallback.config I changed this values to true enter image description here

  • Then I set the Fallback Language of the german language item to English enter image description here

  • And finally, I checked the Enable Item Fallback in the standard_values of the class definition item enter image description here
  • Now the black and the white versions are looking like this enter image description here

But the color switcher is still not working. What else can I try to make this work?

  • I see "English" as fallback language in your screen shot. So is this your custom language because all predefined languages in Sitecore will be having language code. I guess the fallback language field is a drop down and let you choose an existing language. How you have "English" instead of "en", have renamed any predefined language item(s).? – Gobinath Saminathan Nov 7 at 20:21
  • this is not the raw value...if i activate the raw values then there is "en" – dave_26456 Nov 8 at 7:46
  • And yes the language item is renamed. But only the display name not the item name. Is this a problem? – dave_26456 Nov 8 at 8:08
  • Is your site name is "website" in Site definition? – Mahendra Shekhawat Nov 8 at 8:22
  • The name of my site was not "website" in the SiteDefinition. The problem is solved now because I changed the "website" to the real name of the site. – dave_26456 Nov 11 at 8:22
-1

The name of my site was not "website" in the SiteDefinition. The problem is solved now because I changed the "website" to the real name of the site.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.