SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have implemented a custom ECB Action in this way:

    Title="Convert to ListItem"
    <UrlAction Url="/_layouts/CustomActionProcessor/CustomActionProcessor.aspx?ID={ItemId}&amp;List={ListName}&amp;CustomAction=ConvertListLevel" />

This works fine on my local dev-machine. The action is only shown when I select a content type with the same ID as declared at "RegistrationId". The problem is, this ID is unique, so when I deploy this on another machine the content type is the same, but has another ID. Is there a way to bind the ECB-Action to a content type using it's name?

Thank you very much!


share|improve this question
up vote 1 down vote accepted

I would suggest you deploy your content types declaratively using FEATURES so that you have same content type id everywhere. This will not only help you in this particular case but many other places as well.

share|improve this answer
I will accept that as answer. As you already said, sooner or later I have to create the contenttypes programmatically. Your suggestion will be the reason for me to do it now and not somewhere in the future :) Thank you! – CodingSheep Dec 21 '11 at 12:30

Your Answer


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.