How to use internal links with wildcard items in Sitecore?

我只是一个虾纸丫 提交于 2019-12-22 06:33:31

问题


I have a multiple site Sitecore solution. All the sites share a product range which is stored inside a 'Shared data' node that sits at the same level as the root nodes of the sites. The individual product pages on a site use a wildcard item to lookup the product based on the last part of the URL.

This means that we can't use internal links in the rich text editor to point to the product page on any of the sites because the product item does not have a specific site URL.

Does anyone know of a way to overcome this, or perhaps know of a way to augment the default behavior of interal links?


回答1:


Have you considered using cloned items, see here for details.

This would allow you to share the content whilst having the appearance to the end user of the Products being inside the content tree allowing you to use the RTE and internal link look ups?

For extra information about clones, see here and here

You'd also need to do some work in the link provider to link to the cloned version of a product if you wanted. See this question.



来源:https://stackoverflow.com/questions/15341024/how-to-use-internal-links-with-wildcard-items-in-sitecore

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!