Reputation: 8411
I am wanting to create a Custom Document Library for the purpose of targeting a custom action feature to the Custom Document Library's New Menu.
I have found many different guides on the internet, but you know how old those can be.
So what would be the "correct" way to create a custom document library in SharePoint 2007.
Thank you, Keith
Upvotes: 2
Views: 4689
Reputation: 8411
I have taken the approach of copying the OOTB DocumentLibrary folder and files structure from the 12hive\TEMPLATE\Feature directory, changing some of the default files to make this a new CustomDocumentLibrary, and wrapping the new files and folders up as a feature to be deployed with stsadm.
Upvotes: 4
Reputation: 2849
Create your list definition and your custom action in the same solution (possibly in the same feature). Not strictly necessary, but helpful.
In your ListDefinition.xml file, the ListTemplate node has an attribute "Type".
In your xml file defining the custom action, the CustomAction has an attribute "RegistrationId".
The values of these two attributes should be identical and unique from everything else. Pick something large (over 10000 is recommended).
The guides are good, find a recent one.
Upvotes: 1