When you start building any web project, one of the first things that you will need to do is get information about the current page to display related page data back to the website user. In today's tutorial, I'm going to cover some of the basic API calls to achieve this.
var currentUrl = Sitecore.Links.LinkManager.GetItemUrl(Sitecore.Context.Item);
var page = PageContext.Current.Item;
Software Architect, Programmer and Technologist Jon Jones is founder and CEO of London-based tech firm Digital Prompt. He has been working in the field for nearly a decade, specializing in new technologies and technical solution research in the web business. A passionate blogger by heart , speaker & consultant from England.. always on the hunt for the next challenge