none
Ribbon button not visible on other page RRS feed

  • Question

  • I create ribbon button for Documents list and all work fine, but when I add this list as Web Parts on default.aspx or other web page and try work, button on this page not visible.

    Element.xml

     

     <CustomAction
      Id="DemoHelloWorldButton"
      RegistrationId="101"
      RegistrationType="List"
      Location="CommandUI.Ribbon"
      Sequence="0"
      Title="Hello World">
      <CommandUIExtension>
       <CommandUIDefinitions>
        <CommandUIDefinition
         Location="Ribbon.Documents.Manage.Controls._children">
         <Button
          Id="Ribbon.Documents.Manage.Controls.DemoHelloWorldButton"
          Alt="Hello World Ribbon Button"
          Sequence="0"
          Command="Demo_HelloWorld"
          Image32by32="/_layouts/images/ribbondemo/demobutton.png"
          LabelText="Hello World Demo"
          TemplateAlias="o1"/>
        </CommandUIDefinition>
       </CommandUIDefinitions>
       <CommandUIHandlers>
        <CommandUIHandler
         Command="Demo_HelloWorld"
         CommandAction="javascript:alert('Hello World!');"
         />
       </CommandUIHandlers>
      </CommandUIExtension>
     </CustomAction>

    Thursday, June 10, 2010 2:37 PM