[英]Episerver 7 upgraded from 6, move page types to code
I have a project which is just upgraded from EpiServer 6 to 7. Project is running fine, but now I would like to move the pagetypes into classes deriving from PageData. 我有一个刚刚从EpiServer 6升级到7的项目。该项目运行良好,但是现在我想将页面类型移到派生自PageData的类中。 How would I proceed doing this? 我将如何进行呢? We do not have PageTypeBuilder defined types, all is from database. 我们没有PageTypeBuilder定义的类型,全部来自数据库。 I guess we start with the GUID from the page type in admin gui and set it in ContentType attribute of the PageData class. 我想我们从admin gui中页面类型的GUID开始,并在PageData类的ContentType属性中进行设置。
Take a look at Alf's re-work of Erik's tool here: 在这里查看Alf对Erik工具的重做:
http://talk.alfnilsson.se/2013/03/08/creating-page-type-classes-from-page-types-in-episerver-cms-7/ http://talk.alfnilsson.se/2013/03/08/creating-page-type-classes-from-page-types-in-episerver-cms-7/
Download here: 在这里下载:
https://github.com/alfnilsson/pagetypeclasses https://github.com/alfnilsson/pagetypeclasses
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.