sitecore 多个域、共享项目
我在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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只需将 Rendering.SiteResolving 更改为 false 即可。
sitecore 将从 http 请求中确定 url 的主机名。
Just
Rendering.SiteResolving
tofalse
.The the sitecore will determine the urls' hostname from http request.