Open Source

Asp.Net Mvc Areas - Packed as NuGet

If you would want to add Asp.Net Areas support to your EPiServer site, you would need to copy some files from my previous blog post. Copying files from someone's blog posts seems to be good idea, but it's a bit problematic in case of updates or changes. If so, then we share common vision that by installing NuGet package, your project gets up-to-date support for Asp.Net Mvc Areas. For that reason I packed up Asp.Net Mvc Areas support into NuGet package, for you guys. You may just…

Keep reading

Asp.Net Mvc Areas in EPiServer - Part 2

Asp.Net Mvc Areas is a great way to organize and structure your EPiServer site. Once you have multi-tenant site where the same EPiServer installation with the same set of libraries, styles, script set and other assets is handling more than single site - Asp.Net Mvc Areas become really handy to group particular site's specific assets and other stuff together under single folder. This also gives developers more obvious and more clear picture of the project setup. However we all know that there is no native support for Asp.…

Keep reading

FeatureSwitch meets Glimpse

FeatureSwitch library got yet another plugin in its family. Glimpse is an amazing framework for troubleshooting and tracing your web application, even in production environment. If by coincidence you are a consumer of this framework and also use FeatureSwitch library, then now they run together. You can access your features through Glimpse control panel. Installation You need to install a package from nuget.org feed: > Install-Package FeatureSwitch.Glimpse Using FeatureSwitch.Glimpse package you can get an overview of your features and its state through FeatureSwitch tab. There is also…

Keep reading

EPiServer DDS Strategy for FeatureSwitch

Thanks to Paul Smith for adding some more EPiServer integration for FeatureSwitch library. Now FeatureSwitch EPiServer integration library is equipped with DDS storage strategy. This was pretty easy to implement: public class EPiServerDatabaseStrategyImpl : BaseStrategyImpl { public override bool Read() { var store = typeof(FeatureState).GetStore(); var definition = store.Items<featurestate>().FirstOrDefault(d => d.Name == Context.Key); return definition != null && definition.Enabled; } public override void Write(bool state) { var store = typeof(FeatureState).GetStore(); var definition = store.Items<featurestate>().FirstOrDefault(d => d.Name == Context.Key) ?? new…

Keep reading

Initializable modules without EPiServer

EPiServer initialization modules is a great feature to provide plugin facilities for the hosting application. I find initialization modules pretty handful in cases when you need to initialize some library, configure some stuff or do whatever needed at application start-up. However there are times when you have to develop site without wonderful backup platform that takes all boring boilerplate code away and provides with much awesome stuff and features. Let’s switch to ordinary Asp.Net Mvc application initialization code: [assembly: OwinStartupAttribute(typeof(WebApplication1.Startup))] namespace WebApplication1 { public partial class…

Keep reading