I created a function with a content type:
<ContentType ID="0x01007C963A8770A24bbfBDBCE157B96EE769"
Name="Send" Group="Demo" Version="1">
</ContentType>
I want to create custom actions for this type of content.
This works in ECB (pop-up menu for each header):
<CustomAction
Id="Demo.Send.PopupMenu"
Title="Send"
Location="EditControlBlock"
Description="Hold"
RegistrationType="ContentType"
RegistrationId="0x01007C963A8770A24bbfBDBCE157B96EE769">
<UrlAction Url="http://www.google.com/search?q={ItemId} Cookies"/>
</CustomAction>
However, I cannot get it to work with form toolbars (edit or display):
<CustomAction
Id="Demo.Send.DisplayFormToolbar"
Title="Send"
Location="DisplayFormToolbar"
Description="Send"
RegistrationType="ContentType"
RegistrationId="0x01007C963A8770A24bbfBDBCE157B96EE769"
Sequence="108">
<UrlAction Url="http://www.google.com/search?q={ItemId} Cookies"/>
</CustomAction>
I do not receive an error message, I just do not see the button.
It works if I change RegistrationIdto 0x01, but then I see it in all types of content (all elements, really).
Any idea what is wrong with this code?
source
share