How to provision List Templet (.stp) to list templete gallery and create instance of list based on uploaded stp trough Feature
-
Thursday, March 20, 2008 12:00 PM
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?
All Replies
-
Wednesday, July 30, 2008 6:04 AMI need to do the samething (use a Module to upload a list.stp into /_catalogs/lt *and* have it appear in the list of Custom Lists create.aspx page).
The Module uploads the list.stp just fine but it doesn't appear on create.aspx. What am I doing wrong?
Update: I've started a new thread here: http://forums.community.microsoft.com/en/sharepointdevelopment/thread/9cd4577d-22f3-4d34-8cf0-a69ce154fa78
Xpert Search Agents for Microsoft web sites: http://www.parallelspace.net/MicrodeX- Edited by Michael Herman - Toronto Wednesday, July 30, 2008 8:49 PM updated

