设置指定体验编辑器的上下文站点

Aym*_*oum 5 sitecore sitecore8 sitecore8.1

我正在处理多站点,我想打开上下文站点的体验编辑器,但 sitecore 无法解析上下文站点,它总是将我带到默认网站,sitecore.config 文件中有一个设置,我将其设置为“ true”,但它仍然带我到默认网站:

http://mywebsite.local/?sc_mode=edit&sc_site=网站

这是sitecore.config中的设置,我的sitecore版本是8.1(更新2)

<!--  PREVIEW - RESOLVE SITE
            If false, the Preview.DefaultSite setting specifies the context site to use when a user previews an item.
            If true, when a user previews an item, Sitecore tries to resolve the root item and the context site based on the current content language
            and the path to the item. If Sitecore cannot resolve the context site, it uses the site that is specified in the Preview.DefaultSite setting.
            Default value: false (use the value of the Preview.DefaultSite setting)
      -->
    <setting name="Preview.ResolveSite" value="true"/>
Run Code Online (Sandbox Code Playgroud)

Aym*_*oum 0

这在 Sitecore 8.1(更新 2)中被报告为错误,这是支持团队的修复:

\n\n
    \n
  1. 打开核心数据库中的 \xe2\x80\x9c/sitecore/client/Applications/Launchpad/PageSettings/Buttons/ContentEditing/ExperienceEditor\xe2\x80\x9d 项
  2. \n
  3. 将 \xe2\x80\x9cLink\xe2\x80\x9d 字段值更改为:\n/?sc_mode=edit&sc_resolvelanguage=0
  4. \n
\n\n

更新答案:

\n\n

对于多站点,您需要应用另一个修复程序,我在https://kb.sitecore.net/上没有找到它的编号上没有找到它的编号,因此我在 dropbox 上上传了所需的文件:

\n\n
    \n
  1. 从此链接下载Sitecore.Support.88883.zip

  2. \n
  3. 复制附加的Sitecore.Support.88883.dll到您网站的 /bin 文件夹中;

  4. \n
  5. 复制附加的Sitecore.Support.88883.config到您网站的 App_Config/Include 文件夹中;
  6. \n
  7. 打开核心数据库中的“/sitecore/client/Applications/Launchpad/PageSettings/Buttons/ContentEditing/ExperienceEditor”项
  8. \n
  9. 将 \xe2\x80\x9cLink\xe2\x80\x9d 字段值更改为:/?sc_mode=edit&sc_resolvelanguage=1
  10. \n
  11. 清除浏览器缓存。
  12. \n
\n