sitecore 多个域、共享项目

发布于 2024-10-08 06:29:57 字数 510 浏览 0 评论 0原文

我在domain1.com 的sitecore 中有一个站点,

<site rootPath="/sitecore/content" startItem="/home" .. />

我想在domain2.com 创建第二个站点,该站点使用相同的项目

<site rootPath="/sitecore/content" startItem="/home" ... />

这两个站点都引用内容树中的相同项目。清除?

在domain2.com 上由sc:path(.) 生成的链接(创建绝对链接)引用domain1.com。 据我了解,链接是指 web.config 中引用内容树中的项目的第一个站点。

我怎样才能获得这两个网站的有效链接?

I have a site in sitecore at domain1.com

<site rootPath="/sitecore/content" startItem="/home" .. />

I want to create a second site at domain2.com that uses same items

<site rootPath="/sitecore/content" startItem="/home" ... />

Both sites refer to same items in content tree. Clear?

The links generated by sc:path(.) (makes absolute links) on the domain2.com refer to domain1.com.
As far as I understand links refer to the first site in web.config that refered to the items in content tree.

How can I get valid links for both sites?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

白馒头 2024-10-15 06:29:57

只需将 Rendering.SiteResolving 更改为 false 即可。
sitecore 将从 http 请求中确定 url 的主机名。

Just Rendering.SiteResolving to false.
The the sitecore will determine the urls' hostname from http request.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文