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: 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}&ListId={ListId}"/> </CustomAction>
发表评论
-
Creating Hierarchical Menus with a CustomAction in SharePoint
2011-11-17 14:11 881原文链接 http://weblogs.asp.net/j ... -
SharePoint Custom Action Identifiers
2011-11-16 13:48 908原文链接 http://johnholliday.net/ ... -
Filtering with SPGridView
2011-10-12 15:23 749原文链接 http://vspug.com/bobsbon ... -
SPGridView: Adding paging to SharePoint when using custom data sources
2011-10-11 16:55 1040原文链接 http://blogs.msdn.com/b/ ... -
SPGridView and SPMenuField: Displaying custom data through SharePoint lists
2011-10-11 16:14 1267原文链接 http://blogs.msdn.com/b/ ... -
How to work around bugs in the SPGridView control
2011-10-11 16:10 787原文链接 http://blogs.msdn.com/b/ ... -
How to add a custom action to a SharePoint list actions menu for a specific list
2011-10-11 10:56 925原文链接 http://www.nearinfinity. ... -
Adding CheckBoxes in SharePoint GridView (SPGridView)
2011-10-10 17:01 916原文链接 http://www.c-sharpcorner ... -
SharePoint的列级安全性
2011-10-10 11:25 1128原文链接 http://www.infoq.com/cn/ ... -
在 SharePoint 中自定义审核
2011-10-09 16:59 1690原文链接 http://msdn.micr ... -
SharePoint 2007 and Windows WorkFlow Foundation: Integrating Divergent Worlds
2011-10-09 16:32 1381原文链接 http://www.developer.com ... -
通过 STSDEV 简化 SharePoint 开发
2011-09-30 15:58 1236原文链接 http://msdn.microsoft.co ... -
计算字段公式
2011-09-30 15:47 850原文链接 http://msdn.microsoft ...
相关推荐
Adding New Hardware for Avaya
Setting SharePoint list item validation with PowerShell 78 Setting list item security 84 ii Table of Contents Setting list relationships 89 Customizing list views 94 Managing the use of content types ...
Time for action – creating a custom gridset 215 Configuring tile layers 218 Time for action – configuring layers and layer groups for caching 219 Time for action – using tiles with OpenLayers 221 ...
超棒的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
SAP Fiori - Adding a Custom Workflow in 6 Steps
Adding placeholder functionality for TextField in SAPUI5
ArcGIS Server 9.2帮助文档翻译(7)Adding Custom Functionality下吧下吧,好的话我继续
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帮助文档翻译(6)Adding a Custom Context Attribute 为ESRI公司做大贡献了,客服什么都不说哈,什么中文资料也不给,只能靠自己了!
this is a opencv project to add background and texture for the image
– 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 ...
Give your apps a unique look by adding a logo to your menu(48KB)
USB4 1.0 ECN - Adding Timeout for Sending LFPS on CLx Exit.pdf
USB4 1.0 ECN - Adding Option for DP Wake.pdf
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 此扩展要求每个用户一份授权 ...– Adding random code – Make classes unreadable (so classes cannot get directly decompiled) – String Obfuscation
– 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 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 ...
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
Some handy functions for adding and deleting submenus and menuitems in runtime (16KB)