EPiServer 7.5 – Exception – More than one content model is assigned to the guid

When running an EPiServer site and you get the exception “More than one content model is assigned to the guid”. This is usually because you’ve changed a namespace. There will be a reference to the old namespace cached somewhere so do the following: 1) Clear your bin folder 2) Clear the ASP.NET Temporary files folder… Continue reading EPiServer 7.5 – Exception – More than one content model is assigned to the guid

New Marie Curie ‘In Your Area’ Search Functionality

For the past two weeks here at Marie Curie we’ve been working on new functionality for searching for Marie Curie services across the United Kingdom. It has just today finally gone live and now we can serve our supporters with better information about the key services and events in their area. ‘In Your Area’ On… Continue reading New Marie Curie ‘In Your Area’ Search Functionality

Architect – Our Website Branching Strategy @ Marie Curie Cancer Care

What we use We use a combination of Git, EPiServer and have a fairly small team which makes the challenge of using the standard pattern of Gitflow a little more difficult. So we use a part of it to help us get an excellent balance between being responsive to post production issues and minimal branch… Continue reading Architect – Our Website Branching Strategy @ Marie Curie Cancer Care

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