How to use internal links with wildcards in Sitecore?

I have a Sitecore solution with multiple sites. All sites have a number of products that are stored inside the "common data" node, which is at the same level as the root sites of the sites. On individual product pages on a site, a wildcard element is used to search for a product based on the last part of the URL.

This means that we cannot use internal links in a text editor to point to the product page on any of the sites, because the product element does not have a specific site URL.

Does anyone know a way to overcome this, or perhaps a way to increase the default behavior of cross-thread links?

+5
source share
1 answer

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

This will allow you to share content with the appearance of the end user of the Products inside the content tree, allowing you to use RTE and the appearance of links to the link?

For more information about clones, see here and here.

You will also need to do some work in the link provider so that you can reference the cloned version of the product. See this question.

+4
source

All Articles