Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Not able to add "custom action" on the "Insert" tab on Publishing Page

$
0
0

Hi,

I am trying to add a custom action in the "Insert" section of the the publishing page, however i am not able to view the button.

By the below XML i am getting the button on  the "Edit Properties" window for the page but not when i "Edit" the publishing page. Please advice and let me know if more information is neede

XML  i have used is :

<CustomAction Id="Ribbon.EditingTools.JWPlayerUpload" RegistrationType="List" RegistrationId="850" Location="CommandUI.Ribbon"><CommandUIExtension><CommandUIDefinitions><CommandUIDefinition Location="Ribbon.EditingTools.CPInsert.Groups._children"><Group
            Id="Ribbon.EditingTools.CPInsert.Groups.PostMediaGroup"
            Sequence="190"
            Description="Media Group"
            Title="Post Media"
            Command="EnablePostMediaGroup"
            Template="Ribbon.Templates.Flexible2"><Controls Id="Ribbon.EditingTools.CPInsert.Groups.PostMediaGroup.Controls"><Button
                 Id="Ribbon.EditingTools.CPInsert.Groups.PostMediaGroup.PostVideoButton"
                 Command="InsertVideo"
                 Image32by32="/_layouts/JwPlayerFiles/Images/formatmap32x32.png" Image32by32Top="0" Image32by32Left="-224"
                 ToolTipTitle="Insert Video"
                 ToolTipDescription="Upload video from computer"
                 LabelText="Video"
                 Sequence="190"
                 TemplateAlias="o1"/></Controls></Group></CommandUIDefinition><CommandUIDefinition
       Location="Ribbon.EditingTools.CPInsert.Scaling._children"><MaxSize
            Id="Ribbon.EditingTools.CPInsert.Groups.PostMediaGroup.MaxSize"
            Sequence="190"
            GroupId="Ribbon.EditingTools.CPInsert.Groups.PostMediaGroup"
            Size="LargeLarge" /></CommandUIDefinition></CommandUIDefinitions><CommandUIHandlers><CommandUIHandler Command="EnablePostMediaGroup" CommandAction="javascript:return true;" /><CommandUIHandler Command="InsertVideo" CommandAction="javascript:PostForm.insertVideo();" EnabledScript="javascript:PostForm.enableVideo();" /></CommandUIHandlers></CommandUIExtension></CustomAction>






Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>