我正在使用SharePoint 2010和VS2010。

我已经实现了本教程来创建自定义Web模板:

http://usmanmughal.wordpress.com/2011/04/26/2011/04/26/how-to-create-web-template-in-sharepoint-2010-using-feature/

现在我想将日历和公告列表添加到主页。我在哪里以及如何在我的Web模板文件上这样做:

  1. defaultdws.aspx
  2. default.aspx
  3. onet.xml
  4. 元素.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.

许可以下: CC-BY-SA归因
scroll top