2018年5月28日

(Sitecore) - Enable Language Fallback

In this case condition, a website with 5 language version, but some of language version web page use English version, therefore when user switch the language, Sitecore must detect what language is available by all version.


1. To Config Sitecore.LanguageFallback
File location : C:\inetpub\wwwroot\dev\Website\App_Config\Include\Sitecore.LanguageFallback

The way to open :
1. Open Note as Administrator
2. Open File.

Modify the following content into from false to true

    <sites>
      <site name="shell">
        <patch:attribute name="enableItemLanguageFallback">true</patch:attribute>
        <patch:attribute name="enableFieldLanguageFallback">true</patch:attribute>
      </site>
      <site name="website">
        <patch:attribute name="enableItemLanguageFallback">true</patch:attribute>
        <patch:attribute name="enableFieldLanguageFallback">true</patch:attribute>
      </site>
    </sites>


After configuring the attribute, back to Sitecore.

Setting the version fallback in Sitecore > System > Languages > Fallback Language[share]
Choice a language will fallback when current language without version



Open Content and see Advanced panel


Check "Enable Item Fallback" and pick a Standard value when the language without version.


Reference:
https://stackoverflow.com/questions/39585520/language-fallback-not-working-for-fields-with-standard-values-sitecore-8-1/39585521#39585521

沒有留言:

張貼留言

<Javascript> How to uncompressed GZIP at front-end using Javascript

It's been a while I haven't share my coding work. In this article I would like to share how to receive a Gzip file via stream, unzip...