在SharePoint Project中添加相应的Item,完全用界面的形式向EricSunArticlesList中添加好对应的Column,之后用Feature将List添加到SharePoint中
代码如下:
外层Elements.xml
以及对应的Schema
Work in Progress Pending Approval Published UnPublished Expired Archived Work in Progress main.xsl 30 main.xsl 30
通过添加Row 的方式可以添加默认的Item
即:里层Elements.xml
|
2013-02-03 00:00:00 2023-02-04 00:00:00 Published ;#1;#EricSunCategory1;# EricSun EricSunCategory1 1 VEXILLUM Custus Morbi cursus sapien est progressionis ipsius sumptus-plus |
2013-02-03 00:00:00 2023-02-04 00:00:00 Published ;#1;#EricSunCategory2;# EricSun EricSunCategory1 1 VEXILLUM Custus Morbi cursus sapien est progressionis ipsius sumptus-plus
*********************************************************************************************************
这里再添加另外一个的List(应用Item的Content Type):EricSunCategoriesList;并用Feature将此List添加到SharePoint中
外层Elements.xml
Schema.xml
main.xsl 30 main.xsl 30
里层Elements.xml,用于向List中添加默认值
|
EricSunCategory1 |
EricSunCategory2