SUBSCRIBE to Windows IT Pro Magazine & SAVE 30%     Register today for your FREE 'To The Point' SharePoint eNewsletter
     

     
Skip Navigation Links.
Collapse Office and SharePointOffice and SharePoint
Expand Newsletter ArchivesNewsletter Archives
Expand Office 2007Office 2007
Expand Office 2003Office 2003
Collapse SharePointSharePoint
Expand Installation and DeploymentInstallation and Deployment
SharePoint Extends a Nonprofit’s Reach
How to change your personal information in MOSS 2007
KPI's in Microsoft Office SharePoint Server 2007
Expand Integrating SharePoint and Microsoft Office 2003Integrating SharePoint and Microsoft Office 2003
Diving Into the Windows SharePoint Services 3.0 API
Hide custom list items
Linking to documents in another document library
Custom Web Part Basics
Expand Integrating SharePoint and Microsoft Office 2007Integrating SharePoint and Microsoft Office 2007
Testing Our Web Part Base Class
Expand Working OfflineWorking Offline
Installing Microsoft's Application Templates
Manage quick menu item using EditControlBlock in WSS 3.0
Expand Windows SharePoint Services Document LibrariesWindows SharePoint Services Document Libraries
Creating and Using a New Column Type
Corporate Blogging
SharePoint 2007 Content Types
Windows SharePoint Services Out of the Box
More About SharePoint 2007 Content Types
Using Content Types in Windows SharePoint Services 3.0
SQL storage planning & monitoring (MS white paper)
Display the user name for the logged on user
Outlook 2007 and SharePoint Synchronization
Use Kerberos to Secure MOSS 2007
10 Important Kerberos Facts
Stsadm
SSRS and MOSS 2007
Shared Tasks Lists with SharePoint and Outlook 2007
Introducing the Business Data Catalog
Information Integration: SSRS and MOSS 2007
What Can I Accomplish with Other SharePoint Technologies?
Integrate SharePoint into Your Exchange Environment
Outlook and SharePoint: Playing Well Together
SharePoint Integration with Outlook 2007, Part 3
Bridge the SharePoint File-Restore Gap
Migration Glitch in SharePoint Portal Server
Windows SharePoint Services 3.0 Out of the Box
SharePoint Security Evolution
Creating and Using a New Content Type in SharePoint 2007
Announcements
     

     

     

Manage quick menu item using EditControlBlock in WSS 3.0

Manage quick menu item using EditControlBlock in WSS 3.0

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.