Manage quick menu item using EditControlBlock in WSS 3.0

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 Files\Common Files\Microsoft Shared\web server extensions\12\Layouts\Feature

-          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:

<?xml version="1.0" encoding="utf-8" ?>

<Feature xmlns="http://schemas.microsoft.com/sharepoint/"

    Id="GUID"

    Scope="Site"

    Title="EditControlBlock"

    Version="1.0.0.0"

   Description="Custom Feature - This Feature adds links to the EditControlBlock menu.">

  <ElementManifests>

    <ElementManifest Location="EditControlBlock.xml" />

  </ElementManifests>

</Feature>

-          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:

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">

  <CustomAction

   Id="GUID"

   RegistrationType="List"

   RegistrationId="101"

   Location="EditControlBlock"

   Sequence="106"

   Title="To HumanData">

    <UrlAction Url="http://www.humandata.se"/>

  </CustomAction>

</Elements>

-          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 Files\Common Files\Microsoft Shared\web server extensions\12\BIN

-          Type: stsadm - installfeature -filename EditControlBlock\feature.xml

-          stsadm - activatefeature -filename EditControlBlock\feature.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, HumanData

Posted On: 12/13/2006

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish