Property Injection & Action Filters in EPiServer 7 CMS

I spent a bit of time putting in some custom implementation to support Property Injection on to my Action Filters before realizing that EPiServer 7 already provides this functionality for me. Doh. In order to take advantage all you need to do is set your DI controlled interface to the generic type property of the Injected class.… Continue reading Property Injection & Action Filters in EPiServer 7 CMS

Manipulating an EPiServer Page Programmatically

Creating a Page Here’s how you can create a page in code from a page type you’ve already defined. First create a new instance of the page type under another page in the form of a link: var newBlogPost = ContentRepository.GetDefault<BlogPostPage>(parentLink); Then set whatever properties you wish to the newBlogPost object. newBlogPost.Subject = “Creating an EPiServer… Continue reading Manipulating an EPiServer Page Programmatically

EPiServer 7 CMS – Import and Exporting Content between Environments

At Marie Curie we have several environments that sit across our infrastructure. Occasionally we get a requirement to shift content from one environment to another. This could be because we’ve auto generated pages via scheduled job or that QA have created a string of pages and want it replicated in another environment without having to key them… Continue reading EPiServer 7 CMS – Import and Exporting Content between Environments