EPiServer CMS PageTypes T4-template
If you're starting a new project, you should consider using the EPiServer CMS Page Type Builder. This project is most useful when you have a legacy EPiServer project, that is not worth the time or effort to convert to EPiServer CMS Page Type Builder, but you really would like those strongly typed PageType helpers.
Download
You can get the latest version from the public Mercurial trunk on BitBucket.
- http://bitbucket.org/bokmal/episerver-cms-pagetypes-t4-template
- (or just download GeneratePageTypes.tt directly)
Support
Confirmed to work with:
- EPiServer CMS 5.2 SP2
Usage
Dump the GeneratePageTypes.tt in root folder of your ASP.NET EPiServer website.
Classes will be generated for you.
You can let your ASPX-templates inherit from the generated TemplatePage
or you can use the generic DataFactory.Instance.GetPage () extension method.
Goals
- Make it easier for developers to work with EPiServer CMS.
- Unobtrusive behavior 1) No references to external libraries are needed. 2) Generated code does not break compilation of existing code.
Contribute
Comments and contributions are more than welcome.
comments powered by Disqus