How To Disable Updating of Page Types When Using Page Type Builder

I’ve mentioned it before, but as I keep getting questions on the subject I thought I’d dedicate a post to it. It being the question whether it’s possible to tell Page Type Builder not to update page types when the application starts. And the answer is yes :)

Doing so is also one possible solution to another question I’ve gotten a few times: do I have any suggestion on how to handle the problem that properties that one developer have removed is recreated when another developer, that doesn’t have the latest version but who uses the same database, browse the site after compilation.

Disabling updating of page types is done by adding a new configuration section called pageTypeBuilder to web.config and setting it’s disablePageTypeUpdation attribute to true, like this:

<configuration>
  <configSections>
    <section name="pageTypeBuilder"
type="PageTypeBuilder.Configuration.PageTypeBuilderConfiguration,
PageTypeBuilder"/>
  </configSections>
    <pageTypeBuilder disablePageTypeUpdation="true" />
</configuration>

PS. For updates about new posts, sites I find useful and the occasional rant you can follow me on Twitter. You are also most welcome to subscribe to the RSS-feed.

Comments

  1. Marius's avatar

    Marius 5 months ago

    How does this work for the opposite: when you remove a property from your pagetype code, it remains as a property in EpiServer - is there a way to automagically remove the page property on build?

  2. Joel Abrahamsson's avatar

    Joel Abrahamsson 5 months ago

    Hey Marius!

    I'm afraid there isn't. For an explanation of why please see my comment here: http://pagetypebuilder.codeplex.com/WorkItem/View.aspx?WorkItemId=6070

  3. Marius's avatar

    Marius 5 months ago

    Well, that I can understand. Manual labor it is :)

Add a comment

Allowed tags: <b>, <em>, <quote cite="">, <code>, <c-sharp-code>, <css-code>, <sql-code>, <xml-code>, <javascript-code>. If you want to display code examples, please remember to write &lt; for < and &gt; for >.

Follow me on Twitter

  1. Blogged: Learning Scala part nine – Uniform Access http://bit.ly/bmUat8 1 days ago
  2. @mikaellundin Your blog is a never ending source of wisdom. And weird mathematical problems. :) 3 days ago
  3. Bookmarked: Validate XHtml 1.0 Strict as part of your build process « Mint http://bit.ly/bOhaZj 3 days ago
follow me

Latest comments

  1. Svante wrote "Yes, I noticed that it was a singleton, and I guess the real..." on Something to beware of when using EPiAbstractions and an IoC container
  2. Joel Abrahamsson wrote "Well, first of all you wont get any arguments from me regard..." on Something to beware of when using EPiAbstractions and an IoC container
  3. Svante wrote "Hmm... Since the issue really is with the public instance co..." on Something to beware of when using EPiAbstractions and an IoC container

About this site

This blog is built with EPiServer Community, EPiServer CMS, ASP.NET MVC and a bunch of other great products. The source code is available for download at the projects page, where you also can read more about this site and my other projects.

read more