none
How to provision List Templet (.stp) to list templete gallery and create instance of list based on uploaded stp trough Feature

    Question

  •  

    Hi, i have couple of  things need to achive using feature.

     

    I have a feature which provisions a .stp file to list templete gallery.

    here is the  element manifest file xml snippet

    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">

    <Module Name="addressList" List="114" Url="_catalogs/lt" >

    <File Path="Liststp" Url="address.stp" Type="GhostableInLibrary" />

    </Module>

    </Elements>

     

    1.

    The .stp file gets added to the List Templete gallery, when i go to create new List in the site, there is no link to create the list based on my list templete(.stp) uploaded through the feature.

     

    2.

    I need to create new list based on the uploaded list templete through feature.

    I am able to create new instance of the out of the box list by specifying the following xml in the elemet manifest file of feature.

    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">

    <ListInstance  Id="customlist" Title="Address"

    Description="List provisened though feature"

    TemplateType="100" Url="Lists/CustomList">

    </ListInstance>

    </Elements>

     

    But i want to create List based on my uploaded list templete. Is it possible to create list instance based on my uploaded stp through feature?

     

     

    Thursday, March 20, 2008 12:00 PM

All replies