Search code examples
c#asp.net.net-4.0episerverepiserver-6

Creation/use of EpiServer properties


I'm working with EpiServer CMS 6 on the ASP .net 4.0 platform. I can create a property in Admin Mode just fine but is there a way to create properties in Visual Studio? (Not necessarily custom properties, just a simple String property for now). Am I right in saying the only way to do this would be by using Page Type Builder?


Solution

  • You can use the API to create PageTypes and PageDefinitions in code. Here is a good starting point.

    I would recommend you use PageTypeBuilder instead though, it offers many advantages over the API.