Welcome to Comunidade Bloggers |create|it| Sign in | Join | Help

André Vala

SharePoint
Office
FAST Search Server
.Net

News

  • European SharePoint Community Awards 2012 Winner
    Locations of visitors to this page

    Comunidade Portuguesa de SharePoint

    View André Vala's profile on LinkedIn

    © André Vala and Create IT, 2006-2011. Unauthorized use and/or duplication of this material without express and written permission from this blog’s author and/or owner is strictly prohibited. Excerpts and links may be used, provided that full and clear credit is given to André Vala and Create IT with appropriate and specific direction to the original content.

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. 

Posted: Friday, August 31, 2007 6:20 AM by andrevala

Comments

André Vala said:

Summary This post is about developing features to create list templates in a SharePoint site. Check the

# May 17, 2008 10:11 PM
Anonymous comments are disabled