如何在Sitecore中使用带有通配符项的内部链接? [英] How to use internal links with wildcard items in Sitecore?

查看:201
本文介绍了如何在Sitecore中使用带有通配符项的内部链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个多站点Sitecore解决方案。所有站点共享一个产品范围,该产品范围存储在共享数据节点内,该节点与站点的根节点位于同一级别。网站上的各个产品页面使用通配符项根据URL的最后部分查找产品。

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.

这意味着我们无法使用内部链接富文本编辑器指向任何网站上的产品页面,因为产品项目没有特定的网站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?

推荐答案

您是否考虑过使用克隆项目,请参阅此处了解详情。

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

这将允许您分享内容,同时让产品的最终用户在内容树中的外观允许您使用RTE和内部链接查找?

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.

这篇关于如何在Sitecore中使用带有通配符项的内部链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆