Manage quick menu item using EditControlBlock in WSS 3.0
How to use EditControlBlock in Windows SharePoint Services 3.0.
August 13, 2007
When you want to add items to the EditControlBlock (ECB) you have to create a feature. This is how you add a link to the Edit Control Block menu (per item):
- On the SharePoint server, navigate to C:Program FilesCommon FilesMicrosoft Sharedweb server extensions12LayoutsFeature
- Create a folder named EditControlBlock (you may choose another name that would help you recognize the content of the folder).
- Create a file named Feature.xml. In this file you want to type:
Id="GUID" Scope="Site" Title="EditControlBlock" Version="1.0.0.0" Description="Custom Feature - This Feature adds links to the EditControlBlock menu."> - To get the GUID, use the menu in Visual Studio under Tools – Create GUID.- Save the file.- Create another file named EditControlBlock.xml. In this file you want to type: Id="GUID" RegistrationType="List" RegistrationId="101" Location="EditControlBlock" Sequence="106" Title="To HumanData"> - To get the GUID, use the menu in Visual Studio under Tools – Create GUID.
- Save the file.Now you need to register your feature before you activate it and making it available.Start by open the Command Prompt.- Navigate to C:Program FilesCommon FilesMicrosoft Sharedweb server extensions12BIN- Type: stsadm - installfeature -filename EditControlBlockfeature.xml- stsadm - activatefeature -filename EditControlBlockfeature.xml -url http://server/site/subsite
If you do not activate your feature through the Commando Prompt you can do this on your web site (explained below).- iisreset- Close the Command Prompt.- Open SharePoint and navigate to the web site you want to activate your feature to.- Click on Site Actions and Site Settings. - In the column on the far right, Site Collection Administration you will find, and click on Go to top level site settings.- In the column on the far right, Site Collection Administration you will find, and click on Site Collection features.- Locate your feature (EditControlBlock) and click on the Activate button.
…becomes…- Navigate to your site and document library to see the changes in the quick menu. Submitted By: Michael Jansson, HumanDataPosted On: 12/13/2006
About the Author
You May Also Like