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 custom web template which uses onet.xml file of 15hive\TEMPLATE\SiteTemplates\sts\xml and following is the element.xml file. However when I create a sub site based on this custom team site it is empty and does not contain promoted liks. I would like to add Promoted links to the custom web template. Here is the element.xml

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="">

I tried to add the web part to the onet.xml like this but it still empty

  <AllUsersWebPart WebPartZoneID="Left" WebPartOrder="0">
                 <WebPart xmlns="">
                     <Assembly>Microsoft.SharePoint, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly>
share|improve this question

You cannot provision Web Parts in Modules element using a Web Template. Consider adding a feature receiver or a Module SPI.

share|improve this answer
Thanks, Actually it is provisioned but it provisioned to default.aspx not sitepages/home.aspx. Yes using features but not so easy to add webparts to wiki pages. – Medes May 28 '13 at 7:12

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.