gpt4 book ai didi

sharepoint - CustomAction 菜单项是否适用于子内容类型?

转载 作者:行者123 更新时间:2023-12-03 16:59:50 25 4
gpt4 key购买 nike

我有一个带有 RegistrationType="ContentType"的 CustomAction 定义:

<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>

所有使用此内容类型的文档库都将显示此上下文项菜单。

我的问题是,是否会为内容类型为 0x010100120013(继承自 0x01010012)的列表显示此上下文项菜单?

最佳答案

我没有更改来尝试它,但是是的,当您将 CustomAction 关联到 Parent 内容时,它也会被推送到 Child。

我从 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.

关于sharepoint - CustomAction 菜单项是否适用于子内容类型?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1322081/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com