Question

Je recherche l'emplacement du ruban XML SharePoint pour les vues de liste.Je suis juste curieux de voir comment Microsoft l'a codé.Cependant, je ne connais pas l'emplacement du fichier XML.Quelqu'un pourrait-il me mettre dans la bonne direction ?

Merci!

Était-ce utile?

La solution

Tous les définitions de ruban sont stockées dans ce fichier:

C: \ Fichiers de programme \ Fichiers communs \ Microsoft Shared \ Web Server Extensions \ 14 \ Modèle \ Global \ XML \ cmdui.xml

Action JS Code Pour la plupart de ces éléments de ruban, vous pouvez trouver ici:

C: \ Fichiers de programme \ Fichiers communs \ Microsoft Shared \ Web Server Extensions \ 14 \ Modèle \ Mise en page \ sp.ribbon.debug.js

Actions pour ruban d'éditeur de texte riche sont stockées ici:

C: \ Fichiers de programme \ Fichiers communs \ Microsoft Shared \ Web Server Extensions \ 14 \ Modèle \ Mise en page \ sp.ui.rte.debug.js

Autres conseils

Copiez le XML suivant dans Elements.xml de Feature et essayez de jouer avec les paramètres.L'emplacement est CommandUI.Ribbon.ListView

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <CustomAction
  Id="ShowHelloWorldButton"
  RegistrationType="List"
  RegistrationId="100"
  Location="CommandUI.Ribbon.ListView"
  Rights="EditListItems">
    <CommandUIExtension>
      <CommandUIDefinitions>
        <CommandUIDefinition
         Location="Ribbon.ListItem.Actions.Controls._children">
          <Button
           Id="Ribbon.ListItem.Actions.Controls.ShowHelloWorldButton"
           Alt="Show HelloWorld Alert"
           Sequence="1"
           Image32by32="/_layouts/DemoSharePointRibbon/HelloWorld.jpg"
           Command="ShowHelloWorldCommand"
           LabelText="Hello World"
           TemplateAlias="o1"
           CommandType="General"/>
        </CommandUIDefinition>
      </CommandUIDefinitions>
      <CommandUIHandlers>
        <CommandUIHandler
         Command="ShowHelloWorldCommand"
         CommandAction="javascript:alert('Hello World');" />
      </CommandUIHandlers>
    </CommandUIExtension>
  </CustomAction>
</Elements>

L'emplacement du fichier XML du ruban est :

C: Program Files Common Files Microsoft Shared Web Server Extensions 14 Template Global xml cmdui.xml

Licencié sous: CC-BY-SA avec attribution
Non affilié à sharepoint.stackexchange
scroll top