Feature的Location和GroupId設定組合(转载)
使用网站功能(Feature)可以更方便的变更Windows SharePoint Services的网页选单功能,例如在网站动作中新增一个新的自定义选单,或是在清单的画面中异动按钮或功能等等。然而要设定这些自定义动作的话,在 Feature中就必须设定适当的Windows SharePoint Services命名空间,
其设定的主要关键项目为:Location和GroupId。
不过这些Location的设定组合还蛮多的,当然亚当斯不可能全部记起来,所以在此将SDK中所有的可能设定组合记录一下,下列表为所有的Location 的 GroupId对应组合:
Area |
Location |
GroupId |
Display form toolbar |
DisplayFormToolbar |
n/a |
Edit form toolbar |
EditFormToolbar |
n/a |
New form toolbar |
NewFormToolbar |
n/a |
List view toolbar |
ViewToolbar |
n/a |
Edit control block menu (per item) |
EditControlBlock |
n/a |
New menu for list and document library view toolbars |
Microsoft.SharePoint.StandardMenu |
NewMenu |
Actions menu for list and document library view toolbars |
Microsoft.SharePoint.StandardMenu |
ActionsMenu |
Settings menu for list and document library view toolbars |
Microsoft.SharePoint.StandardMenu |
SettingsMenu |
Upload documents menu for document libraries |
Microsoft.SharePoint.StandardMenu |
UploadMenu |
Site Actions menu |
Microsoft.SharePoint.StandardMenu |
SiteActions |
Site Settings Site Collection Administration links |
Microsoft.SharePoint.SiteSettings |
SiteCollectionAdmin |
Site Settings Site Administration links |
Microsoft.SharePoint.SiteSettings |
SiteAdministration |
Site Settings Galleries Links |
Microsoft.SharePoint.SiteSettings |
Galleries |
Site Settings Look and Feel links |
Microsoft.SharePoint.SiteSettings |
Customization |
Site Settings Users and Permissions links |
Microsoft.SharePoint.SiteSettings |
UsersAndPermissions |
Site Actions menu for surveys |
Microsoft.SharePoint.StandardMenu |
ActionsMenuForSurvey |
Site Settings links for surveys |
Microsoft.SharePoint.SiteSettings |
SettingsMenuForSurvey |
Content Type Settings links |
Microsoft.SharePoint.ContentTypeSettings |
n/a |
Central Administration Operations page |
Microsoft.SharePoint.Administration.Operations |
n/a |
Central Administration Application Management page |
Microsoft.SharePoint.Administration.ApplicationManagement |
n/a |