none
Интерфейс ленты sp RRS feed

  • Вопрос

  • Не могу добавить кнопку в ленту на сайте sharepoint

     

    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
     <CustomAction
      Id="DemoHelloWorldButton"
      RegistrationType="List"
      RegistrationId="101"
      Location="CommandUI.Ribbon">
      <CommandUIExtension>
       <CommandUIDefinitions>
        <CommandUIDefinition
         Location="Ribbon.Documents.New.Controls._children">
         <Button
          Id="Ribbon.Documents.New.Controls.DemoHelloWorldButton"
          Alt="Hello World Ribbon Button"
          Sequence="10"
          Image32by32="/_layouts/images/ribbondemo/eclipse32.png"
          Command="Demo_HelloWorld"
          LabelText="Hello World Demo"
          TemplateAlias="o2"/>
        </CommandUIDefinition>
       </CommandUIDefinitions>
       <CommandUIHandlers>
        <CommandUIHandler
         Command="Demo_HelloWorld"
         CommandAction="javascript:alert('Hello World!');" />
       </CommandUIHandlers>
      </CommandUIExtension>
     </CustomAction>
    </Elements>
    
    


    11 августа 2011 г. 9:44

Ответы