SharePoint 2013 自定义扩展菜单(二)

时间:2023-02-03 21:59:17

接博文《SharePoint 2013 自定义扩展菜单》,多加了几个例子,方便大家理解。

例七 列表设置菜单扩展(listedit.aspx

扩展效果

SharePoint 2013 自定义扩展菜单(二)

XML描述

  <CustomAction
Id
="CustomAction1"
Description
="博客园-霖雨"
Title
="博客园-霖雨"
GroupId
="GeneralSettings"
Location
="Microsoft.SharePoint.ListEdit"
Rights
="ManageWeb"
RequireSiteAdministrator
="FALSE"
Sequence
="20">
<UrlAction Url="http://www.cnblogs.com/jianyus" />
</CustomAction>


例八 管理中心应用程序管理扩展菜单

扩展效果

SharePoint 2013 自定义扩展菜单(二)

XML描述

  <CustomAction
Id
="ChangeNameDescriptionGroup"
Description
="博客园-霖雨"
Title
="博客园-霖雨"
GroupId
="WebApplications"
Location
="Microsoft.SharePoint.Administration.Applications"
Rights
="ManageWeb"
Sequence
="20">
<UrlAction Url="http://www.cnblogs.com/jianyus" />
</CustomAction>

注:这个Feature的范围,要是Farm级别的,要不然,对管理中心不生效。

  其他位置参考Default Custom Action Locations and IDs即可

 

例十 扩展“人员和组”设置(groups.aspx)菜单

扩展效果

SharePoint 2013 自定义扩展菜单(二)

XML描述

  <CustomAction
Id
="ChangeNameDescriptionGroup"
Description
="博客园-霖雨"
Title
="博客园-霖雨"
GroupId
="SettingsMenu"
Location
="Microsoft.SharePoint.GroupsPage"
Rights
="ManageWeb"
Sequence
="20">
<UrlAction Url="http://www.cnblogs.com/jianyus" />
</CustomAction>


结束语

  在之前的博客基础上,多加了几个例子,方便大家理解Location和GroupId的作用,希望简单的例子,能够对大家有所帮助。