0

I am using sharepoint 2010 and VS2010.

I have implemented this tutorial for creating a custom web template:

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

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:

  1. defaultdws.aspx
  2. default.aspx
  3. ONET.xml
  4. elements.xml

What to do in which file?

1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.