Reputation: 1
But my intention is to deploy this list from development to test environment. EXTREMELY STRESSED. I AM ON THIS FOR LAST 8 DAYS.....
Upvotes: 0
Views: 1004
Reputation: 444
So you've successfully created, deployed and activated the Feature which provides the template for the list, as you say. You can then create an instance of the list manually, using the template, or you can have the Feature automatically provision an instance when activated. To do so, add the following to your Elements.xml (or whatever you have named it):
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<ListTemplate Name="MainCatalog" Type="12345" BaseType="0" SecurityBits="11" DisplayName="Main Catalog" Description="Create a Main Catalog list instance" Image="/_layouts/images/itgen.gif" RootWebOnly="FALSE" OnQuickLaunch="TRUE"/>
<ListInstance Id="MainCatalog" TemplateType="12345" Title="Main Catalog" Url="Lists/MainCatalog" Description="Main Catalog list"></ListInstance>
Then deploy this Feature to your test environment.
Upvotes: 2