I have created a custom list definition which simplies creates a new list using "Document Library" list.
I created another Custom Document Library and was wondering if there is any way I can create a Custom Document Library in ONET.XML (site definition) and then use the same list for creating the site.
Currently, I am using following code,
<List FeatureId="GUID ID" Type="91001" Title="DocumentLibrary" Url="DocumentLibrary" />
Now it does work for Document Library because its already created and available in the list, however If i put my list name which is "Custom Document Library"
I get this error,
Cannot complete this action.
Please try again. at Microsoft.SharePoint.Library.SPRequestInternalClass.ApplyWebTemplate(String bstrUrl, String& bstrWebTemplate, Int32& plWebTemplateId) at Microsoft.SharePoint.Library.SPRequest.ApplyWebTemplate(String bstrUrl, String& bstrWebTemplate, Int32& plWebTemplateId)
which defiantly because list hasn't been created yet, however I have a list feature activated and I can create a new list using the list template.