August 13, 2007 10:27 PM

Manage quick menu item using EditControlBlock in WSS 3.0

Rating: (0)
SharePointPro Connections
InstantDoc ID #103711

Submitted By: Michael Jansson, HumanData
Posted On: 12/13/2006

In the attached file (Office 2007) you will find the steps (with pictures) necessary to take in order to add items to the quick menu.  You will find this menu when you click to the right of an object in any list and libraries in SharePoint.
These steps could help you when wanting to start an action from a document or a list item.  It took me quite some time for me to figure this one out, and hopefully you will not have to spend as much time it took me to make this happen!

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.

ARTICLE TOOLS

   

Add a Comment

There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here

SharePoint Check-In

What Would YOU Ask a SharePoint General Manager?

IT people are good at asking questions--yes? Even of a SharePoint executive..

Caroline A. Marwitz

SharePointNews

Microsoft PDC 2010: It's on!

Microsoft announces PDC dates for 2010...

Caroline Marwitz

SharePointNews

Would you rather be a SharePoint administrator or a World Cup referee?

SharePoint double-dog dare...

Caroline Marwitz