none
Custom Action - what's the correct Location value to add an item Media and Video button menu? RRS feed

  • Question

  • Hello,

    I am trying to add custom action to the button Video and Media menu. I can't find the proper value for this. It's easy and working fine for Picture button menu item with this excerpt of CustomAction:

    <CommandUIDefinitions>
    	<CommandUIDefinition Location="Ribbon.EditingTools.CPInsert.Media.Image.Menu.Image.Controls._children">
    		<Button
    Id="Ribbon.EditingTools.CPInsert.Media.Image.Menu.Image.CustomAssetPicker"
    Command="AssetPickerLinkButtonCommand"
    LabelText="From SharePoint (my action)"
    TemplateAlias="o1"
    Sequence="100"/>
    	</CommandUIDefinition>
    </CommandUIDefinitions>

    The description here https://msdn.microsoft.com/en-us/library/office/ee537543.aspx mentions only Ribbon.EditingTools.CPInsert.Media group with Control ID = Ribbon.EditingTools.CPInsert.Media.Image but I can't figure out the value for the Video and Audio. I marked it on the pictures.

    No problem on Picture button menu:


    But what's the value to get it to Video and Audio button menu?



    • Edited by Martin P7 Tuesday, February 14, 2017 9:51 AM
    Tuesday, February 14, 2017 9:42 AM

Answers

  • Found it, it's

    Ribbon.EditingTools.CPInsert.Media.Media.Menu.Section.Controls._children

    • Marked as answer by Martin P7 Tuesday, February 14, 2017 1:56 PM
    Tuesday, February 14, 2017 1:56 PM

All replies

  • Found it, it's

    Ribbon.EditingTools.CPInsert.Media.Media.Menu.Section.Controls._children

    • Marked as answer by Martin P7 Tuesday, February 14, 2017 1:56 PM
    Tuesday, February 14, 2017 1:56 PM
  • Hi Martin,

    Thanks for your sharing and it will help others who stuck with the same issue in the forum.

    Best Reagrds


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    Wednesday, February 15, 2017 1:41 AM