2013-03-14 53 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

相關問題