locked
Unable to add custom button to custom ribbon group RRS feed

  • Question

  • I've used this walkthrough to add a custom group in the ribbon tab List, and then a button in that group.

    http://msdn.microsoft.com/en-us/library/ff407214.aspx

    The group is visible, but the button isn't

     

    <CommandUIDefinition Location="Ribbon.List.Groups._children">
              <Group
                Id="Ribbon.List.Doorbestelgroep"
                Sequence="1"
                Description="Broodjes"
                Title="Broodjes"
                Command="EnableCustomGroup"
                Template="Ribbon.Templates.Flexible2">
                <Controls Id="Ribbon.List.Doorbestelgroep.Controls">
                  <Button
                            Id="Doorbestellen"
                            Command="Doorbestellen"
                            Image16by16="/_layouts/images/actionseditpage16.gif"
                            Image32by32="/_layouts/images/actionssettings.gif"
                            LabelText="Doorbestellen"
                            TemplateAlias="o1"
                            Sequence="10" />
                  <Button
                    Id="Ribbon.List.Doorbestelgroep.CustomGroupHello"
                    Command="CustomGroupHelloWorld"
                    Image16by16="/_layouts/images/actionseditpage16.gif"
                    Image32by32="/_layouts/images/actionseditpage.gif"
                    LabelText="Hello, World"
                    TemplateAlias="o2"
                    Sequence="15" />
                </Controls>
              </Group>
            </CommandUIDefinition>
    

    What am I doing wrong?

     


    Thursday, November 10, 2011 10:53 AM

Answers

  • Hi Koen,

     

    Thank you for your post, but this a forum pre-2010. You should post the question relate to SharePoint 2010 to the dedicated forum.

     

    And this is article talking about customizing and extending ribbon more detailed, you can refer to it.

     

    http://msdn.microsoft.com/en-us/library/gg552606.aspx

     

    Hope this helps.

     

    Thanks,

    Pengyu Zhao

    • Marked as answer by Pengyu Zhao Friday, November 18, 2011 2:26 AM
    Monday, November 14, 2011 2:45 AM