无处不在的SharePoint按钮(二)

本想写成一个系列的课程,无奈,从ribbon、网站设置等操作的菜单定义方式基本上都是一样的,全部都是定义Element元素。基本的架构百度一搜一大片,主要组成部分是:

<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomAction Id="myTest"

GroupId="PersonalActions"

Location="Microsoft.SharePoint.StandardMenu"
Sequence="1000"
Title="xxxxx">
<UrlAction Url="xxxx"/>
</CustomAction>
</Elements>

基本上都可以通过这个扩展出来,当然ribbon的Location大家可以从C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\GLOBAL\XML中的CMDUI.xml进行发掘.

其他常用的几个地址包括网站设置:Microsoft.SharePoint.SiteSettings,Microsoft.SharePoint.StandardMenu等。大家可以通过msdn找到。

下面就是上述msdn的地址:

http://msdn.microsoft.com/zh-cn/library/bb802730.aspx

原文地址:https://www.cnblogs.com/Believeme/p/2783321.html