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

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

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

扩展效果

clip_image006

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>


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

扩展效果

clip_image007

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)菜单

扩展效果

clip_image008

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的作用,希望简单的例子,能够对大家有所帮助。

posted @ 2013-10-18 23:06  霖雨  阅读(2811)  评论(0编辑  收藏  举报