其中之一是使用Feature开发
使用Feature定义站点中的菜单项
http://hi.baidu.com/ourbi/blog/item/81c3b809c805c2276a60fb22.html
利用CustomAction,可以给站点某些 位置 添加菜单或链接 :
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<!-- Document Library Toolbar New Menu Dropdown -->
<CustomAction Id="UserInterfaceLightUp.DocLibNewToolbar"
RegistrationType="List"
RegistrationId="101"
GroupId="NewMenu"
Rights="ManagePermissions"
Location="Microsoft.SharePoint.StandardMenu"
Sequence="1000"
Title="MY DOCLIB NEW MENU TOOLBAR BUTTON">
<UrlAction Url="/_layouts/LightupHello.aspx?NewMenu"/>
</CustomAction>
</Elements>
How to: Add Actions to the User Interface
Location和GroupId确定了菜单的位置 。 以下 是支持的所有Location和GroupID :
Default Custom Action Locations and IDs The following table shows the locations, custom action group IDs and, custom action IDs that are used in the CustomAction and CustomActionGroup elements of custom actions that are installed by default in Windows SharePoint Services 3.0.
Each location value that is listed in the table corresponds to the Location attribute of CustomAction, each group ID corresponds to the GroupId attribute of CustomAction or to the Id attribute of CustomActionGroup, and each custom action ID corresponds to Id attribute of CustomAction.
You can create a Feature that implements the HideCustomAction element to hide any default custom action that is identified in the table. Subhead
Location Custom Action Group ID Group Description Default Custom Action IDs DisplayFormToolbar
N/A Location corresponds to the display form toolbar of lists. ExportEventToolbarButton (calendars) ExportContactToolbarButton (contacts) EditControlBlock
N/A
Corresponds to the per-item edit control block (ECB) menu.
EditFormToolbar
N/A Location corresponds to the edit form toolbar of lists.
Microsoft.SharePoint.Administration.ApplicationCreated
Links Application Created page. CreateSite HomePage Microsoft.SharePoint.Administration.ApplicationManagement ApplicationSecurity Application Security section on Central Administration Application Management page.
SharePoint Web Application Management section on Central Administration Application Management page.
Extend
Unextend
Delete
ManagedPaths
EmailSettings
GeneralSettings
ManageContentDatabases
ManageWebAppFeatures
ListWebApplications Microsoft.SharePoint.Administration.ApplicationManagement WorkflowManagement Workflow Management section on Central Administration Application Management page. WorkflowManagement Microsoft.SharePoint.Administration.Operations BackupRestore Backup and Restore section on Central Administration Operations page.
Backup
BackupHistory
Restore
BackupStatus Microsoft.SharePoint.Administration.Operations DataConfiguration Data Configuration section on Central Administration Operations page.