开发者

adding a button in the edit menu of a webpart in sharepoint 2010

Is there a way to add a link or button in the menu that appears whe开发者_如何学JAVAn you click on the top left corner of a web part in sharepoint 2010?


These menu items are usually called "Verbs", there is a decent tutorial here on adding them.

http://nishantrana.wordpress.com/2009/03/07/customizing-custom-web-part-menu-in-sharepoint/


What I did is use JQuery to look for all the Verb menus present in the page, then add a new DOM elemente to that menu tag.

I deployed this custom javascript code to all the pages using a delegate control with the id AdditionalPageHead. This delegate control added the custom script and a link to JQuery script file. JQuery was also bundled in the solution package.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜