Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

How to create a document library template in SharePoint 2013 site definition?

$
0
0
In a site definition in SP2013, I want to create a document library template (not instance). I have this code in my `onet.xml`:

<?xml version="1.0" encoding="utf-8"?><Project Title="Mysite" Revision="2" ListDir="" xmlns:ows="Microsoft SharePoint" xmlns="http://schemas.microsoft.com/sharepoint/"><NavBars><NavBar Name="SharePoint Top Navbar" ID="1002"></NavBar></NavBars><ListTemplates></ListTemplates><DocumentTemplates><DocumentTemplate Path="STS" Name="" DisplayName="$Resources:core,doctemp_None;" Type="100" Default="FALSE" Description="$Resources:core,doctemp_None_Desc;" /></DocumentTemplates><Configurations><Configuration ID="0" Name="Mysite"><Lists/><SiteFeatures></SiteFeatures><WebFeatures></WebFeatures><Modules><Module Name="DefaultBlank" /></Modules></Configuration></Configurations><Modules><Module Name="DefaultBlank" Url="" Path=""><File Url="default.aspx"></File></Module></Modules></Project>


After deploying, I was able to create a site with this site template, but then when I go into the create apps popup to create a document library, there is no options for document libraries at all...

Does anyone know whats wrong?

Thanks

Viewing all articles
Browse latest Browse all 7589

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>