SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have created a basic web template using the following post and added a custom list to it, this works fine.

I now want to add a screen/page to the web template which will show this list and also 2 visual web parts, the nav bars on the left should link to the page (i know how to do this part).

I am a new sharepoint developer.

I need to add a page to the web template which will show a list and also 2 custom visual web parts.

How do i do this in visual studio (it has to be done in visual studio)?

share|improve this question
up vote 0 down vote accepted

Add the file in the webtemplates folder, then add it into the onet.xml to be created when you make the site.

Files get added to the onet file near the bottom, you can see the layout:

<Module Name="myfile" Url="" Path="">
  <File Url="myfile.aspx" NavBarHome="True" Type="Ghostable"/>

It's as simple as that.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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