Friday, August 3, 2007

Creating custom feature in sharepoint

1. Create a folder with any preferred name eg MyActions in C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES path
2. Create a elements.xml file in that folder. Ex for creating custom actions in tool bar
http://schemas.microsoft.com/sharepoint/">
The above custom action us for the tasks list.
3. Create a feature.xml file that specifies the Element Manifest
Ex for feature.xml file
http://schemas.microsoft.com/sharepoint/">
4. Install the feature with following commands
stsadm -o installfeature -filename MyActions/feature.xml
5. Activate the feature
stsadm -o activatefeature -filename MyActions/feature.xml -url http://dev10:4900