Tag Archives: hostName

Sitecore get Context from fully qualified URL

One of the basic Sitecore concepts is the concept of a context. The context is resolved from the HTTP Context to Sitecore and determines the database, language, user domain, content start item etc. The context is defined in the App_Config/Sitecore.config … Continue reading

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

Sitecore get host name from a different context

Ohno, you are running in one context, say the “shell” context, and all of your URL’s have to point to the “website” context. The hustler will obviously hard-code the domain name of the “website” into the code. But the Sitecore … Continue reading

Posted in c#, General .NET, Sitecore 6, Sitecore 7, Sitecore 8 | Tagged , , , | 2 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