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.
Similar articles
- Page Type Builder 1.0 Released!
- Page Type Builder 2 Preview 2
- Developing with Page Type Builder – Getting Started
- A first stab at EPiServer CMS with ASP.NET MVC and Page Type Builder
- Developing with Page Type Builder – Using Interfaces and Advanced Inheritance
- A common problem with Page Type Builder and UniqueValuePerLanguage set to false
- Sweet EPiServer Templating with TypedPageList
- Developing with Page Type Builder – Inheritance and Specifying Property Types
My book
Want a structured way to learn EPiServer 7 development? Check out my book on Leanpub!
Comments
comments powered by Disqus