Legal Notice
The opinions expressed herein are my own personal opinions and do not represent my employer’s view in anyway.Top Posts
- C# DateTime to UNIX timestamps
- C# Use HttpClient to GET JSON from API endpoint
- C# Azure Table Storage QueryAsync, Paging and Filtering
- C# JWT Token Get Expiry Timestamp
- .NET API CORS: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header.NET API
- C# .net Swagger API Versioning - Show versions in your Swagger page
- Run tasks in parallel using .NET Core, C# and async coding
Archive
Meta
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 LinkManager, links, SiteContext, Sitecore and .net, SiteResolving, URL
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 LinkField, LinkManager, SecurityDisabler, Sitecore and .net, TargetItem
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 LinkManager, LinkProvider, MediaManager, Sitecore and .net, SiteResolving
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
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
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 context, hostName, LinkManager, Multisite, rootPath, Site, Sitecore and .net, startItem
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
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