Tag Archives: LinkManager

Sitecore Create Fully Qualified Url

A classic issue in Sitecore: Some code running in one Site Context is creating a link to a page in another context, and the link turns out to be complete garbage. For example, this code is running in the modules_shell … Continue reading

Posted in .net, c#, General .NET, Sitecore 6, Sitecore 7, Sitecore 8, Sitecore 9, Sitecore and .net | Tagged , , , , , | Leave a comment

Sitecore LinkField TargetItem is NULL – what’s wrong?

An ancient topic, that pops up once or twice every year. The TargetItem of Sitecore.Data.Links.LinkField returns NULL and you are CERTAIN that the item is published. What to do? CASE 1: THERE IS SECURITY SET ON THE TARGETITEM Items where … Continue reading

Posted in .net, c#, General .NET, Sitecore 6, Sitecore 7, Sitecore 8, Sitecore 9, Sitecore and .net | Tagged , , , , | 1 Comment

Sitecore Links with LinkManager and MediaManager

This article describes how Sitecore handles internal and external links, how you can resolve the correct URL to an item, and what you should know about links when building multisite and multilanguage websites. UPDATE 2019-11-12: This article is still valid … Continue reading

Posted in .net, c#, Sitecore 6, Sitecore 7, Sitecore 8, Sitecore 9 | Tagged , , , , | 9 Comments

Sitecore cross-site and cross-language links resolved in 6.4.1 release 120113

In my previous post, Sitecore links in multisite solutions – SiteResolving, I described a limitation to the LinkManager when having multi-site and multi-language solutions. The limitations occur in solutions where you have seperate domain names for languages AND having multiple … Continue reading

Posted in Sitecore 6 | Tagged , , , , | 2 Comments

Sitecore links in multisite solutions – SiteResolving

One of the key features in Sitecore is that you can have multiple sites in the same installation. This is not just about saving money on licenses. The feature allows you to, for example, operate one main website and a … Continue reading

Posted in Sitecore 6 | Tagged , , , | 6 Comments

Working with multiple sites in Sitecore

Sitecore is a multisite system, meaning that you can administer multiple websites in the same Sitecore, and that these websites can share common data (like users, templates, masters, items, etc.). Each website in Sitecore will run in its own context, and … Continue reading

Posted in .net, c#, Sitecore 6 | Tagged , , , , , , , | 22 Comments

LinkManager – Working with URL’s in Sitecore 6

Have you noticed that a page in Sitecore 6 can be accessed through several URL’s? This is an example of the products page on the Sitecore website. The following URL’s are all valid and points to the same page and … Continue reading

Posted in Sitecore 6 | Tagged , , , | 6 Comments

Sitecore.Links.LinkManager and the context

A new feature in Sitecore 6 is the LinkManager. Previously, in Sitecore 5, in order to get a friendly url (an URL with the .aspx extension) you would write the following: In Sitecore 6, the GetFriendlyUrl() is deprecated. Instead we … Continue reading

Posted in Sitecore 6 | Tagged , , , | 7 Comments