`
yake2011
  • 浏览: 18985 次
最近访客 更多访客>>
社区版块
存档分类
最新评论

SharePoint – Adding ECB Menu Item for Specific Custom List

 
阅读更多
原文链接

 

Posted in July 23, 2009 ¬ 6:01 pmh.

 

Occassionally when creating a WSS 3 Feature you will be deploying into an environment that has grown “organically” and now requires some functionality to be developed beyond the capabilities of the standard SharePoint web interface or SharePoint Designer. In this case, we had a requirement to add a menu item to the menu that appears for each item in a SharePoint list – the “ECB” (Edit Control Block) menu (the “Send to Administration” link below):

 



 

Whilst you can easily create a menu item that appears only for a generic type of list (by using a RegistrationType of “List” and RegistrationId of “100″ for all lists, or “101″ for document libraries for instance), and you can also create a menu item for a specific content type (by using a RegistrationType of “ContentType” and a RegistrationId of “[all digits after ctype= parameter]“), it’s not immediately obvious how to generate an ECB Menu item for a SPECIFIC custom list.

The way you do this is to:

  1. Select the list that you want to add the ECB Menu item to
  2. From the Settings menu, click List Settings
  3. Click “Advanced Settings”
  4. Select the Yes radio button on the “Allow management of content types”
  5. Click OK
  6. Click on the newly created “Item” content type
  7. Copy the “ctype” value in the browser address bar (e.g. 0x0100EACBEA0833066E46A0984D0737CBE5EE in my case)
  8. Copy this value into the RegistrationId attribute, and set the RegistrationType attirbute to be “ContentType” your the elements.xml file where your feature is registered
  9. Install and activate your feature, and that’s it.

Example of what part of your elements.xml file will look like:

 

<CustomAction Id="CampaignOpp.SendToAdministration" RegistrationType="ContentType" RegistrationId="0x0100474BBA4EC75C724FB75F41D8E6E4E29801" ImageUrl="/_layouts/images/32316.GIF" Location="EditControlBlock" Sequence="240" Title="Send to Administration" > <UrlAction Url="~site/_layouts/MyFeature/SendToAdministration.aspx?ItemId={ItemId}&amp;ListId={ListId}"/> </CustomAction>


 

  • 大小: 10 KB
分享到:
评论

相关推荐

    Microsoft SharePoint 2010 Developer Reference

    - **Custom Actions:** Custom actions extend the SharePoint user interface by adding new commands or modifying existing ones. - **Ribbons:** Ribbons provide a customizable toolbar for SharePoint pages....

    Adding New Hardware for Avaya

    Adding New Hardware for Avaya

    Microsoft SharePoint 2010 and Windows PowerShell 2.0

    - **Importing a Custom BCS Model to SharePoint**: Readers learn how to import a custom BCS model to SharePoint, allowing for the integration of external data sources. - **Exporting SharePoint BCS ...

    OpenGL ES Tutorial for Android.zip

    超棒的Android的OpenGL ES入门...OpenGL ES Tutorial for Android – Part IV – Adding colors OpenGL ES Tutorial for Android – Part V – More on Meshes OpenGL ES Tutorial for Android – Part VI – Texture

    a example of adding backfround and texture for image

    综上所述,"a example of adding backfround and texture for image"这个项目涵盖了OpenCV中的多个核心概念和技术,包括图像合成、图像融合、色彩空间转换、图像分割以及纹理应用。通过学习和实践这个项目,可以深入...

    Android代码-一个Android Custom Tabs的demo

    Tabby (Cat), is a simple sample application demoing the features of the new Chrome Custom Tabs support library for Android. Using this application you can demo: Coloring the toolbar Displaying the ...

    ArcGIS Server 9.2帮助文档翻译(7)Adding Custom Functionality

    ### ArcGIS Server 9.2帮助文档翻译(7)Adding Custom Functionality #### 知识点解析 **一、Multi-Resource Web ADF 架构** - **资源(Resource)与功能(Functionality)**:从编码的角度来看,资源(Resource)是指`...

    ObfuscatorProv3.3.zip

    – Adding random code – Make classes unreadable (so classes cannot get directly decompiled) – String Obfuscation But why should you choose Obfuscator Pro? Obfuscator Pro makes it nearly impossible ...

    PowerCommands for Visual Studio 2008

    PowerCommands 1.1 is a set of useful extensions for the Visual Studio 2008 adding additional functionality to various areas of the IDE. The source code is included and requires the VS SDK for VS 2008 ...

    unity Obfuscator Pro 3.3.zip

    unity代码混淆加密插件Obfuscator Pro 3.3 此扩展要求每个用户一份授权 ...– Adding random code – Make classes unreadable (so classes cannot get directly decompiled) – String Obfuscation

    Chucks_VBA_Reference_rev17.docx

    Methods for adding comments that display both the formula and value of a cell, which can be useful for documentation purposes. **Read Comments from a Cell (Page 21)** Instructions on reading ...

    SOME-IP Intro.pdf

    – AUTOSAR 4.3 – fixing some transformer bugs, adding support for large UDP messages with SOME/IP-TP as well as SOME/IP-SD optimizations • It relies on using Ethernet and TCP/IP. • vsomeip – ...

    Fingers - Touch Gestures for Unity 2.3.5

    Fingers is your one stop choice for all gesture handling in Unity (and other C# platforms as Fingers has no Unity specific code). Fingers has been tested and runs great on MAC, Windows, iOS and ...

    Android代码-适用于RecyclerView 和 AbsListView的分页下拉加载库

    Paginate Android library for creating simple pagination ...Custom SpanSizeLookup for the loading list item when GridLayoutManager is used (by default loading list item will use full span) Custo

    SharePoint 2007 User's Guide

    Learn to use the document and picture libraries for adding and editing content, add discussion boards and surveys, receive alerts when documents and information have been added or changed, and ...

    SAP Fiori - Adding a Custom Workflow in 6 Steps

    ### SAP Fiori - 在六步内添加自定义工作流 #### 概览 本文将详细介绍如何在SAP Fiori环境中通过六个步骤实现自定义工作流的添加。此过程旨在为那些希望利用SAP Fiori的强大功能来提升业务流程管理效率的企业提供...

    Coder For VB,vb代码格式化

    Coder For VB adds a toolbar to enable easy access to the tools you require, as well as adding them to the code popup menu and the menu bar. Most of the tools are also available using keyboard ...

Global site tag (gtag.js) - Google Analytics