Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I was wondering if someone could help me out with Sharepoint 2007. What I want to do is to add a custom menu item to a context menu (the menu that opens when you click a document or another item).

Right now, the menu looks like this: picture

I want to add an item, "Do stuff" for example, to this menu. Major problems:

  1. I wish this item to appear only in menus for a certain file type (e.g. only for .html but not for .doc);
  2. When I click this item ("Do stuff"), I want to call custom external code (written in C#, either an exe or a DLL), which accepts the name of the clicked file as an input parameter.

I understand the way to achieve this is by using Custom Actions (no javascript editing required in 2007, right?). But since I'm quite new to MOSS, I'm a bit lost and not sure what exactly to do and where to start, so any help is greatly appreciated.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

Sounds like you want a feature that includes your custom action and some code to execute.

Here is a walk-through: http://blogit.create.pt/blogs/andrevala/archive/2008/08/11/SharePoint-2007-Deployment_3A00_-Custom-Action-Features.aspx

share|improve this answer
    
Thanks a lot, that was exactly what I needed. –  Anonymous Jul 28 '10 at 14:16
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.