Feature的Location和GroupId設定組合

摘要:Feature的Location和GroupId設定組合

使用網站功能(Feature)可以更方便的變更Windows SharePoint Services的網頁選單功能,例如在網站動作中新增一個新的自訂選單,或是在清單的畫面中異動按鈕或功能等等。然而要設定這些自訂動作的話,在 Feature中就必須設定適當的Windows SharePoint Services命名空間,其設定的主要關鍵項目為:Location和GroupId。

不過這些Location的設定組合還蠻多的,當然亞當斯不可能全部記起來,所以在此將SDK中所有的可能設定組合記錄一下,下列表為所有的LocationGroupId對應組合:

 

AreaLocationGroupId

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