Needing access to site settings is definitely not a new challenge. I've been creating .NET CMS solutions for over ten years now and from my first project up until my most recent, every site has needed one. If you are new to CM development then think of these settings as things like the Search page Url, the contact us page or the check out page for a commerce site.
Over the years, I've used a variety of ways to add settings into an EPiServer site. This article will discuss the benefits of some of the more popular methods.
var repository = ServiceLocator.Current.GetInstance<IContentLocator>();
var settingPage = repository .GetChildren<SettingsPageType>(ContentReference.RootPage);
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