tags:

views:

104

answers:

1

I am looking for a good tutorial with sample code to create a custom document library by using a feature.

I don't need to create a whole custom template, all I want is a new document library instance of the base document library , when the feature is activated.

Thanks in advance

A: 

Found a quick solution:

<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/"&gt;
  <ListInstance
    FeatureId="00BFEA71-E717-4E80-AA17-D0C71B360101"
    TemplateType="101"
    Id="MyDocumentLibrary"
    Title="MyDocumentLibrary"
    Description="MyDocumentLibrary"
    Url="MyDocumentLibrary"
    OnQuickLaunch="True"
  />

</Elements>
JL