0
A
回答
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
相關問題
- 1. 我缺少SharePoint 2010功能區上的頁面佈局按鈕
- 2. CRM 2011自定義功能區按鈕單擊正常運行其功能,但會引發頁面錯誤
- 3. 功能區上的WPF-定位按鈕
- 4. Sharepoint 2010發佈網站自定義頁面佈局webpart區域
- 5. Sitecore的自定義功能區按鈕不起作用
- 6. 功能區按鈕的自定義快捷方式
- 7. 替代自定義活動的MARK COMPLETE功能區按鈕
- 8. CRM 2011中的自定義視圖功能區按鈕?
- 9. Excel自定義功能區按鈕調用其他功能區按鈕的子程序
- 10. 自定義發佈到Facebook按鈕
- 11. UITableView自定義刪除按鈕功能
- 12. 向按鈕添加自定義功能
- 13. 自定義wp發佈功能
- 14. ActionBar上的自定義主頁按鈕
- 15. 隱藏個別自定義功能區按鈕
- 16. 在自定義功能區Outlook中啓用禁用按鈕
- 17. 在excel功能區中自定義VBA按鈕
- 18. 在VS 2008標準中創建自定義功能區按鈕
- 19. 在SharePoint功能區中編輯自定義按鈕
- 20. 自定義功能區按鈕SelectionCount規則不總是有效
- 21. iPhone自定義頁面控制按鈕
- 22. 自定義發佈頁面模板
- 23. 布點自定義按鈕
- 24. 使用XML在Outlook 2013的會議請求功能區上添加自定義按鈕功能區
- 25. 自定義功能區CSS
- 26. 自定義WPF功能區
- 27. 發佈帶有Facebook按鈕的自定義文本按鈕
- 28. 對象的自定義按鈕上的批准/拒絕功能
- 29. 按鈕2的功能已經定義在按鈕一功能
- 30. 如何自定義HOME按鈕在Android上的功能?