SharePoint Tip #16: List Base Types

When defining a List Template, using a SharePoint feature, one needs to specify the Base Type attribute (see sample below). 

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
   
<ListTemplate
       
BaseType="0"
        Category="Custom Lists"
        Name="ConfigurationList"
        DisplayName="Configuration List"
        Description="My component configuration list"
        FolderCreation="FALSE"
        NoCrawl="TRUE
        OnQuickLaunch="FALSE
        RootWebOnly="TRUE
        SecurityBits="11
        Type="150">
   
</ListTemplate>
</Elements>

This attribute tells SharePoint which kind of list we're trying to create, and can have the following values: 

  • 0 (Generic List)
  • 1 (Document Library)
  • 3 (Discussion Forum)
  • 4 (Survey)
  • 5 (Issues List)

For those who notice that there is no 2, that value is not used. 

Leave a Reply

Your email address will not be published. Required fields are marked *