1

What would be the easiest way to add a custom link to the context item menu? Cheers

1 Answer 1

3

Add a CustomAction and specify Location="EditControlBlock". Example:

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <CustomAction
    Id="SomeID"
    RegistrationType="List"
    RegistrationId="101"
    ImageUrl="/_layouts/1033/Images/SOMEIMAGE.GIF"
    Location="EditControlBlock"
    Sequence="301"
    Title="My Custom ECB Menu Item" >
      <UrlAction
        Url="~site/somepage.aspx?ItemId={ItemId}&amp;ListId={ListId}"/>        
  </CustomAction>
</Elements>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.