Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have created a basic web template using the following post and added a custom list to it, this works fine. http://sebastiantegel.wordpress.com/2012/06/26/webtemplates-is-the-way-to-go/

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
add comment

1 Answer

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"/>
</Module>

It's as simple as that.

share|improve this answer
add comment

Your Answer

 
discard

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.