views:

229

answers:

1

I have a CustomAction definition with RegistrationType="ContentType":

<Elements xmlns="http://schemas.microsoft.com/sharepoint/"&gt;
    <CustomAction
        Id="Sample.DuplicateListItem"
        Location="EditControlBlock"
        Title="Copy Item..."
        RegistrationType="ContentType"
        RegistrationId="0x01010012">
        <UrlAction Url="~site/_layouts/TheKidListActions/CopyListItem.aspx?List={ListId}&amp;ID={ItemId}"/>   
    </CustomAction>
</Elements>

All document libraries which use this content type will show this context item menu.

My question is, will this context item menu be shown for a list which has a content type 0x010100120013 (inherited from 0x01010012)?

+1  A: 

I didn't had a Change to Try it but it is Yes that, when you Associate the CustomAction to the Parent content it will get pushed to the Child as well.

I got this information from the Link

RegistrationId – The identifier of what will get this CustomAction attached to it. Since we have chosen to attach by content type and our RegistrationId is 0×01, we are attaching this CustomAction to the Item content type and all that inherit from it.

Kusek