Skip to main content
deleted 204 characters in body; edited title
Source Link
Robert Lindgren
  • 24.5k
  • 12
  • 53
  • 79

How to create Create a custom web template? Not a site definition or import a saved template wsp file into VS

How can I create a custom web template in Visual Studio?

See here some requirements: I dont want to create a site definition! I dont want to import a saved template file (wsp) into Visual Studio

  • I dont want to create a site definition!
  • I dont want to import a saved template file (wsp) into Visual Studio

I think, but not sure it is something like this:

1)Create a new SharePoint project

2)Create a new empty elements.xml file

3)Find the onet.xml from the publish site tempalte in the 14 hive folders

4)Copy the xml code inside this file

5)Paste the xml code in the elements.xml file you created in step 2

6)At this point you have a clean custom web template which is equal to the publish site template

7)Now you can add or remove stuff to your custom template

  1. Create a new SharePoint project

  2. Create a new empty elements.xml file

  3. Find the onet.xml from the publish site tempalte in the 14 hive folders

  4. Copy the xml code inside this file

  5. Paste the xml code in the elements.xml file you created in step 2

  6. At this point you have a clean custom web template which is equal to the publish site template

  7. Now you can add or remove stuff to your custom template

The reason why I ask you inIs this forum, is because I cannot find anything in google or youtube. There is alot info about site definions, but thats not what I am looking for. I am looking for how to create a custom web template in VS.correct?

How to create a custom web template? Not a site definition or import a saved template wsp file into VS

How can I create a custom web template in Visual Studio?

See here some requirements: I dont want to create a site definition! I dont want to import a saved template file (wsp) into Visual Studio

I think, but not sure it is something like this:

1)Create a new SharePoint project

2)Create a new empty elements.xml file

3)Find the onet.xml from the publish site tempalte in the 14 hive folders

4)Copy the xml code inside this file

5)Paste the xml code in the elements.xml file you created in step 2

6)At this point you have a clean custom web template which is equal to the publish site template

7)Now you can add or remove stuff to your custom template

The reason why I ask you in this forum, is because I cannot find anything in google or youtube. There is alot info about site definions, but thats not what I am looking for. I am looking for how to create a custom web template in VS.

Create a custom web template

How can I create a custom web template in Visual Studio?

See here some requirements:

  • I dont want to create a site definition!
  • I dont want to import a saved template file (wsp) into Visual Studio

I think, but not sure it is something like this:

  1. Create a new SharePoint project

  2. Create a new empty elements.xml file

  3. Find the onet.xml from the publish site tempalte in the 14 hive folders

  4. Copy the xml code inside this file

  5. Paste the xml code in the elements.xml file you created in step 2

  6. At this point you have a clean custom web template which is equal to the publish site template

  7. Now you can add or remove stuff to your custom template

Is this correct?

Source Link
Ola
  • 4.4k
  • 27
  • 129
  • 232

How to create a custom web template? Not a site definition or import a saved template wsp file into VS

How can I create a custom web template in Visual Studio?

See here some requirements: I dont want to create a site definition! I dont want to import a saved template file (wsp) into Visual Studio

I think, but not sure it is something like this:

1)Create a new SharePoint project

2)Create a new empty elements.xml file

3)Find the onet.xml from the publish site tempalte in the 14 hive folders

4)Copy the xml code inside this file

5)Paste the xml code in the elements.xml file you created in step 2

6)At this point you have a clean custom web template which is equal to the publish site template

7)Now you can add or remove stuff to your custom template

The reason why I ask you in this forum, is because I cannot find anything in google or youtube. There is alot info about site definions, but thats not what I am looking for. I am looking for how to create a custom web template in VS.