如何将日历和公告列表添加到我的自定义Web模板?
-
10-12-2019 - |
题
我正在使用SharePoint 2010和VS2010。
我已经实现了本教程来创建自定义Web模板:
现在我想将日历和公告列表添加到主页。我在哪里以及如何在我的Web模板文件上这样做:
- defaultdws.aspx
- default.aspx
- onet.xml
- 元素.xml
该文件在哪个文件?
解决方案
You need to modify Onet.xml file,
http://msdn.microsoft.com/en-us/library/ms474369(v=office.12).aspx
If you go through article link I given above you will figure out that in Onet.xml file you need to add
<ListTemplates>
<ListTemplate .. tag for calendar list and then />
<ListTemplate .. tag for calendar list and then />
</ListTemplates>
You will need to change list template type for calendar and annoucement in list template, I will let you do it yourself.