How to add calendar and announcement list to my custom web template
Web parts added on the home page automatically when the site is created. just need to provision web parts in onet.xml. Then when you create site, webparts will be added automatically. These will be XSLTListViewWebparts (ListViewWebParts).
<View List="Lists/ Announcements" MobileView="TRU E" MobileDefaultView="TRUE" Ba seViewID="2" WebPartZoneID="R ight" WebPartOrder="1" />
http://sharepoint.stackexchange.com/questions/63178/how-to-add-calendar-and-announcement-list-to-my-custom-web-template
If you add following line in onet.xml, this will add Announcements list web part:
<View List="Lists/
Similarly you can add other webparts also like calendar etc.
Before you provision web parts, make sure you provision lists. That is also easy. First you need to add publishing feature ID. That will automatically add all lists. You can also add lists separately
http://sharepoint.stackexchange.com/questions/63178/how-to-add-calendar-and-announcement-list-to-my-custom-web-template
More detail (above screenshot is from this page):
Comments
Post a Comment