Sharepoint中的自定义菜单

其中之一是使用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

LocationGroupId确定了菜单的位置 。  以下 是支持的所有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.

  • WebPartSecurity

  • SelfService

  • WebApplicationSecurity

  • ManagePolicy

ManageAuthenticationProviders

Microsoft.SharePoint.Administration.ApplicationManagement

ExternalService

  • External Service Connections section on Central Administration Application Management page.

  • OfficialFile

  • HtmlViewer

DocConversion

Microsoft.SharePoint.Administration.ApplicationManagement

SiteManagement

  • SharePoint Site Management section on Central Administration Application Management page.

  • CreateSite

  • DeleteSite

  • SiteUse

  • QuotaDefinition

  • SiteQuota

  • SiteOwners

ListSiteCollections

Microsoft.SharePoint.Administration.ApplicationManagement

WebApplicationConfiguration

  • 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.

  • DefaultDatabase

DataRetrieval

Microsoft.SharePoint.Administration.Operations

GlobalConfiguration

  • Global Configuration section on Central Administration Operations page.

  • RunningJobs

  • JobDefinitions

  • AlternateAccessMappings

  • ManageFarmFeatures

Solutions

Microsoft.SharePoint.Administration.Operations

LoggingAndReporting

Logging and Reporting section on Central Administration Operations page.

  • DiagnosticLogging

UsageAnalysis

Microsoft.SharePoint.Administration.Operations

Security

Security Configuration section on Central Administration Operations page.

  • ServiceAccount

  • Irm

  • Antivirus

  • BlockedFileTypes

AdministrationRoles

Microsoft.SharePoint.Administration.Operations

Topology

Topology and Services section on Central Administration Operations page.

  • FarmServers

  • TopologyServices

  • IncomingEmailServer

  • ApproveDGs

EmailConfiguration

Microsoft.SharePoint.Administration.Operations

Upgrade

Central Administration Operations page.

  • SiteUpgradeStatus

FinalizeUpgrade

Microsoft.SharePoint.ContentTypeSettings

Fields

  • Columns section on Site Collection Content Type page.

  • AddField

  • ReorderFields

Microsoft.SharePoint.ContentTypeSettings

General

  • Settings section on Site Collection Content Type page.

  • ChangeNameDescription

  • ChangeOptionalSettings

  • ChangeWorkflowSettings

  • RemoveContentType

Microsoft.SharePoint.ContentTypeTemplateSettings

Fields

  • Columns section on List Content Type page.

  • AddField

  • ReorderFields

Microsoft.SharePoint.ContentTypeTemplateSettings

General

Settings section on List Content Type page.

  • ChangeNameDescriptionGroup

  • ChangeOptionalSettings

  • ChangeWorkflowSettings

RemoveContentType

Microsoft.SharePoint.Create

WebPages

Web Pages section on Create page.

 


Microsoft.SharePoint.GroupsPage

NewMenu

New menu on site collection People and Groups page.

 


Microsoft.SharePoint.GroupsPage

SettingsMenu

Settings menu on site collection People and Groups page.

 


Microsoft.SharePoint.ListEdit

Communications

Communications section on Customize page for list or document library.

 


Microsoft.SharePoint.ListEdit

GeneralSettings

General Settings section on Customize page for list.

 


Microsoft.SharePoint.ListEdit

Permissions

Permissions and Management section on Customize page for list or document library.

 


Microsoft.SharePoint.ListEdit.DocumentLibrary

GeneralSettings

General Settings section on Customize page for document library.

 


Microsoft.SharePoint.PeoplePage

ActionsMenu

Actions menu on site collection People and Groups page.

 


Microsoft.SharePoint.PeoplePage

NewMenu

New menu on site collection People and Groups page.

 


Microsoft.SharePoint.PeoplePage

SettingsMenu

Settings menu on site collection People and Groups page.

 


Microsoft.SharePoint.SiteSettings

Customization

  • Look and Feel section on Site Settings page.

  • ProjectSettings

  • NavOptions

  • Theme

  • TopNav

  • QuickLaunch

  • SaveAsTemplate

  • ReGhost

Microsoft.SharePoint.SiteSettings

Galleries

  • Galleries section on Site Settings page.

  • MasterPageCatalog

  • ManageCType

  • ManageField

  • SiteTemplates

  • ListTemplates

  • WebParts

  • Workflows

Microsoft.SharePoint.SiteSettings

SiteAdministration

  • Site Administration section on Site Settings page.

  • RegionalSettings

  • LibrariesAndLists

  • WebUsage

  • UserAlerts

  • RSS

  • SrchVis

  • ManageSubWebs

  • ManageSiteFeatures

  • DeleteWeb

Microsoft.SharePoint.SiteSettings

SiteCollectionAdmin

  • Site Collection Administration section on Site Settings page.

  • DeletedItems

  • SiteCollectionUsage

  • Storage

  • ManageSiteCollectionFeatures

  • Hierarchy

  • Portal

Microsoft.SharePoint.SiteSettings

UsersAndPermissions

  • Users and Permissions section on Site Settings page.

  • PeopleAndGroups

  • SiteCollectionAdministrators

  • User

Microsoft.SharePoint.StandardMenu

ActionsMenu

Actions menu in list and document library views.

 


Microsoft.SharePoint.StandardMenu

ActionsMenuForSurvey

Site Actions menu for surveys.

 


Microsoft.SharePoint.StandardMenu

NewMenu

New menu in list and document library views.

 


Microsoft.SharePoint.StandardMenu

SettingsMenu

Settings menu in list and document library views.

 


Microsoft.SharePoint.StandardMenu

SettingsMenuForSurvey

Site Settings links for surveys.

 


Microsoft.SharePoint.StandardMenu

SiteActions

Site Actions menu.

 


Microsoft.SharePoint.StandardMenu

UploadMenu

Upload menu in document library views.

 


Microsoft.SharePoint.User

ActionsMenu

Actions menu on Web site Permissions page.

 


Microsoft.SharePoint.User

NewMenu

New menu on Web site Permissions page.

 


Microsoft.SharePoint.User

SettingsMenu

Settings menu on Web site Permissions page.

 


Microsoft.SharePoint.Workflows

LeftNavBarLinks

Left navigational area on pages for managing workflow.

 


NewFormToolbar

N/A

Location corresponds to the new form toolbar of lists.

 


ViewToolbar

N/A

Location corresponds to the toolbar in list views.

 





另外一种是使用Javascript
用javascript自定义SharePoint文档库/列表项菜单
http://www.cnblogs.com/ycc/archive/2007/10/30/942223.html
 
Customizing SharePoint Context Menus
http://blogs.msdn.com/bowerm/articles/175691.aspx

你可能感兴趣的:(SharePoint)