Onet.xml file defines list templates for hidden lists, list base types, a default definition configuration, and modules that apply globally to the deployment.

learn more… | top users | synonyms

1
vote
0answers
23 views

Enable versioning for all the lists under a site through site definition

I want to enable versioning for all the lists under a site through site definition xml. Note: Would not prefer powerhshell script.
0
votes
0answers
16 views

Edit link not visible in Quick Launch after site provisioning using custom web template

I am using a custom web template to create a site based on team site template, but it is not showing the edit links on quick launch and top navigation. This is the element of the web template: ...
0
votes
0answers
13 views

Site definition based on Community

I want to deploy a site definition based on a Community Template, in order to create websites that looks exactly like the Community ones. How can I do that? I tried copying Community onet.xml but it ...
0
votes
0answers
27 views

How to create sitecollection with subsites using custom site definition

How do we create a site collection with subsites using a custom site definition?I have tried adding a new feature and a feature receiver for creating subsites and specified this web scoped feature in ...
0
votes
0answers
99 views

Activate features by code when site created -Onet.xml

I created a new sub site from custom site template. I deployed my custom web template to this site collection. I create a new site and select my custom web template. But I dont understand, why I need ...
0
votes
1answer
70 views

How to set default page layout

I have created a site definition, when creating a subsite my layout that I want to use doesn't get set? How can I set my own default page layout when creating a subiste? Here is my onet.xml ...
0
votes
1answer
244 views

Recommended method to automatically enable sharepoint server publishing feature for new sites

Just a query to see what the best method is for automatically enabling the sharepoint server publishing feature for new sites. Currently users are creating sites but they are unable to add the ...
0
votes
1answer
2k views

Cant add list view webpart through XML

I'm trying to add a listview webpart to my default page of my sandboxed solution for SharePoint 2013 in Office 365. I'm using a ONET file to define my webtemplate based on the STS template. Among ...
0
votes
2answers
64 views

Options for modifying custom site definitions in SharePoint 2010

There is a current custom site definition which many sites are based on that needs to be re-worked. I am familiar (somewhat) with creating and deploying new site definitions through VS and creating ...
0
votes
1answer
497 views

After creating a Web Template the pageTitle becomes hidden, how can i access pageTitle from onet.xml

I have created a Web Template but I haven't quite gotten my head around the Onet.xml file. I've Added some custom Web Parts and basically done most of the things that people suggest one would ...
1
vote
2answers
640 views

Provision list view for discussion board

I have provisioned a publishing page through a feature and andded an instance of a discussion board web part to the home page, this works fine. How can I make sure the web part chrome is set to ...
0
votes
1answer
405 views

Navigation Option Within Web Templates and Onet.xml

I have created a web template which deploys and creates subsite when used. Problem : I am trying to get the navigation setting to work as the image below The current Onet.XML being used to ...
1
vote
1answer
2k views

Add a visual web part to the default page of the custom site definition via ONET.xml file

We have created a SharePoint solution with custom site definition and a simple visual Webpart using Visual Studio 2012. The purpose of the solution would be to add the custom visual webpart to the ...
2
votes
1answer
544 views

Delegate Control SiteMapDataSource throws error

We have a solution with WSP package. This contains set on Delegate Controls. I want to use one of the Delegate Control with multiple parameters. Hence, I have copied that code related to that and ...
1
vote
1answer
507 views

custom Web Template for Team site not showing Promoted links

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 ...
0
votes
1answer
359 views

onet.xml and survey

Is it possible to include a survey and it's questions in the onet.xml ? I know you can create the survey list, but is it possible to include the questions as well ? TIA so far I have been create ...
1
vote
1answer
2k views

why this site feature is not activated when I create a new site by my custom web template?

I am using sharepoint 2010 and vs2010. I have created a custom webtemplates and begin from a copy of a teamsite. In my onet.xml I see the following site feature elements: <SiteFeatures> ...
0
votes
1answer
379 views

Why is it possible to declare more then 1 configuration section in the onet.xml?

I am using sharepoint 2010 and vs2010. I created a custom web template and start with the onet.xml from the teamsite. I see 4 configuration sections. Why there are more then 1 configuration sections? ...
2
votes
1answer
364 views

Set “inherit top navigation from parent node” to yes in site template

I am currently trying to set the button "use top navigation from parent node" from the default value no, to yes. After hours of google research, playing around with the site template (WSP) file, I ...
0
votes
2answers
159 views

Problem with adding TagCloud web part to site definition/onet.xml with userscope

I'm trying to add a Tag cloud web part to my site definition's onet.xml file and set its userscope to everything under the current url. I understood from Microsoft I cannot simply export and import ...
1
vote
1answer
839 views

How do i alter the quicklaunch navbars using the onet file?

I have the following markup in my onet file. All i want to do is show these 2 sections in the quick launch area and NOTHING else. The code below adds these 2 sections but also adds extra sections ...
0
votes
2answers
795 views

“Cannot complete this action.” When calling ApplyWebTemplate()

SPWebApplication webApp = SPContext.Current.Site.WebApplication; using (SPSite site = webApp.Sites.Add("/sites/site3", "SharePoint", null, 1033, null, "administrator", "Administrator", ...
0
votes
2answers
4k views

Document Library in Site Definition with custom content type

I am attempting to specify a custom content type onto a reference library which is being provisioned in a site definition but am so far failing. I have read:- Deploy document library with multiple ...
0
votes
3answers
4k views

Getting global Navigation working using onet.xml

Im trying to create a site definition using onet.xml in sharepoint 2010. So far things are going well however I am now having a problem getting the subsite to inherit the global navigation from its ...
2
votes
2answers
232 views

Site definition configuration. Multi feature visibility dependency

I have created a new site defenition and I would like to set a feature dependency. There are a attribute that is called VisibilityFeatureDependency. As I understand, if I set this attribute, my ...