How to add calendar and announcement list to my custom web template?
-
10-12-2019 - |
Question
I am using sharepoint 2010 and VS2010.
I have implemented this tutorial for creating a custom web template:
Now I would like to add the calendar and announcements list to the home page. Where and how do I do this on my web template files like below:
- defaultdws.aspx
- default.aspx
- ONET.xml
- elements.xml
What to do in which file?
Solution
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.
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange