Sitecore部分语言后备不会退缩(Sitecore Partial Language Fallback not falling back)

编程入门 行业动态 更新时间:2024-10-26 20:34:57
Sitecore部分语言后备不会退缩(Sitecore Partial Language Fallback not falling back)

我们正在尝试实施Alex Shyba的 Partial Language Fallback模块 。

我相信我们已根据视频正确配置了所有内容。 我们在Sitecore中将ES的后备语言设置为EN。 我们已经验证了模板和项目的ES版本。

我们已在Home模板的所有字段上启用了回退功能。

在Sitecore中创建西班牙语版本后,我切换到版本,它似乎正在回退到EN。 以下是主数据库和Web数据库在客户端中的显示方式:

这是屏幕截图是WEB db上的ES版本。 您可以看到图像和链接字段中有内容。

但是,当我点击网站时,内容返回null并且无法显示。

由于缺乏文档(我可以找到)以及网络上的好例子,该模块有点痛苦。

有人可以提供一个良好的工作示例链接或分享他们如何配置多站点,多语言sitecore?

We are attempting to implement Alex Shyba's Partial Language Fallback module.

I believe we have everything configured correctly based on the video. We've set the fallback language for ES to EN in Sitecore. We've verified there is a ES version of the both the template and the item.

We've enabled fallback on all the fields of the Home template.

After creating the Spanish version in Sitecore, I switch to version and it appears to be properly falling back to EN. Here is how both the Master db and Web db appear in the client:

This is screen shot is the ES version on WEB db. You can see there is content in the image and link fields.

However, when I hit the site, the content returns null and fails to display.

The module is a bit of a pain because of the lack of documentation (that I can find) and good examples on the web.

Could someone provide a link to a good working example or share how they've configured multi-site, multi-language sitecore?

最满意答案

我非常了解Alex的Partial Language Fallback工具是如何工作的。 我最近在sitecore的技术博客区域发布了一个关于该主题的10个博客系列。 如果您想查看有关如何配置以及所有配置含义的详细信息,请参阅此帖子: http : //www.sitecore.net/Community/Technical-Blogs/Elizabeth-Spranzani/Posts/2014/ 03 /回退系列后2.aspx

你确实是对的,它基于字段回退,而不是语言版本。 您需要确保拥有以下内容:

在您的前端和shell站点上使用的站点的站点节点中启用了回退。 标准值支持数据库设置中引用的Web数据库和主数据库 将侧节点中的版本状态设置设置为“false”或设置为“true”,并使用您的语言创建版本 您希望后备语言设置为回退到系统/语言部分中的主要语言 模板的“英语”版本中的字段已选中“启用后备”复选框。 以两种语言版本发布项目

您不需要具有不同语言版本的模板,除非您将配置中的Fallback.VaryFallbackSettingsPerLanguage设置为true。 我不建议这样做,除非你希望该字段以某些语言而不是其他语言回退。 我没有遇到过必要的情况。 但是,如果您决定这样做,则需要确保选中每个语言版本中每个字段的复选框。

我在这里有一个部分语言回退模块的完整工作演示: https : //github.com/Verndale-Corp/Sitecore-Fallback-FullDemo

确保在内容编辑器中取消选中“标准字段”复选框,以查看“后备值”文本显示以指示字段是否正在退回。 否则,它只会显示“标准值”。

利兹

I understand very well how Alex's Partial Language Fallback tool works. I have recently posted a 10 blog series on the topic in sitecore's technical blog area. If you'd like to see the details about how to configure it and what all the configurations mean, please see this post: http://www.sitecore.net/Community/Technical-Blogs/Elizabeth-Spranzani/Posts/2014/03/Fallback-Series-Post-2.aspx

You are indeed correct, it is based on field fallback, not on the language version. You need to make sure you have the following:

fallback enabled in the site node of BOTH the site you are using on the front end and the shell site. Both the web and master database referenced in the standardValues SupportedDatabases setting Enforce version presence setting in side node set to 'false' or set to 'true' and have the version created in your language The language you want to have fallback set to fallback to the main language in the system/languages section The field in the 'english' version of the template is has the 'enable fallback' checkbox checked. Publish the item in both language versions

You DON'T need to have different language versions of the templates, unless you have the Fallback.VaryFallbackSettingsPerLanguage in the config set to true. And I wouldn't recommend doing that, unless you want the field to fallback in some languages but not others. I haven't run into a scenario where that is necessary. But if you do decide to do this, you will need to make sure the checkbox is checked for every field in each language version.

I have a full working demo of the partial language fallback module here: https://github.com/Verndale-Corp/Sitecore-Fallback-FullDemo

Make sure to uncheck the Standard fields checkbox when in content editor, to see the 'fallback value' text show to indicate whether a field is falling back. Otherwise, it will just show 'standard values'.

Liz

更多推荐

本文发布于:2023-08-07 22:12:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1466145.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:语言   Partial   Sitecore   falling   Fallback

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!