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 have a custom menu action, declared like this:

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomAction
Id="ConvertListLevel"
Location="EditControlBlock"
Title="Convert to ListItem"
RegistrationType="ContentType"
RegistrationId="0x0120007475831FEECFBE4F8B93B41FAC8A2C7200CAEC6AD590466D419F5427BB7597F031">
</CustomAction>
</Elements>

Now I want to execute some code when the action is clicked. To be more clear, I need to copy a list item. What do I have to insert into the elements.xml to reach some code?

Thank you very much,

LMW

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

You need to specify the Url and pass tokens like ListID, ItemId etc in a child element called UrlAction as shown here:

http://hristopavlov.wordpress.com/2008/12/08/urlaction-tokens-of-the-customaction-feature/

and

http://www.manojn.com/blog/post/EditControlBlock-(ECB)-menu-item-in-SharePoint-Wiki-and-Blogs.aspx

share|improve this answer
add comment

Your Answer

 
discard

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

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