2013-03-14 77 views

回答

0

这取决于它是否是一个wiki页面或web部件页,以及标签和组。下面是例子添加丝带维基页/共享选项卡,Web部件页/共享选项卡

下面是元素码:

<Elements xmlns="http://schemas.microsoft.com/sharepoint/"> 
    <CustomAction Id="COB.SharePoint.Ribbon.NewControlInExistingGroup" 
    Location="CommandUI.Ribbon" Sequence="20"> 
    <CommandUIExtension> 
     <CommandUIDefinitions> 
     <CommandUIDefinition Location="Ribbon.WikiPageTab.Share.Controls._children"> 
      <Button .......... /> 
     </CommandUIDefinition> 
     <CommandUIDefinition Location="Ribbon.WebPartPage.Share.Controls._children"> 
      <Button .......... /> 
     </CommandUIDefinition> 

对于其他地方,你可以参考CMDUI.XML在C: \ Program Files \ Common Files \ Microsoft Shared \ Web服务器扩展\ 14 \ TEMPLATE \ GLOBAL \ XML

看看我每次使用自定义功能区时所指的文章。

http://www.sharepointnutsandbolts.com/2010/02/customize-ribbon-programmatically-from.html

相关问题