Can you please help me in order to add a button at Page tab in publishing page. I am able to add the button in the documents library but I am not able to add the button at Page tab.
Here is the XML which I am using for the same:
<CommandUIExtension>
<CommandUIDefinitions>
<CommandUIDefinition Location="Ribbon.Page.Manage.Controls._children">
<Button Id="NewUIRibbonControl.EnableRating"
Alt="EnableRating"
Sequence="1981"
Command="EnableRating"
LabelText="Enable Rating"
TemplateAlias="o1"/>
</CommandUIDefinition>
</CommandUIDefinitions>
<CommandUIHandlers >
<CommandUIHandler Command="EnableRating"
CommandAction="javascript:alert('hi');"/>
</CommandUIHandlers>
</CommandUIExtension>
And also how to call C# function from here. Instead of alert I want to call a C# function.
Please let me know what's wrong there.
Thanks