Is the CustomAction menu item used for child content types?

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

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <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 that use this type of content will display this menu of contextual elements.

My question is: will this context menu menu be displayed for a list that has content type 0x010100120013 (inherited from 0x01010012)?

+3
source share
1 answer

I did not have a change to try, but it is. When you associate CustomAction with parent content, it will also be redirected to the child.

I got this information from Link

RegistrationId - , CustomAction. , RegistrationId 0 × 01, CustomAction Item , .

+2

Source: https://habr.com/ru/post/1715887/


All Articles