Thursday, October 30, 2008

Update: Adding new menu item in SharePoint edit context menu

I made a blog post about adding a new menu item in SharePoint context menu. I was able to do that easily by deploying the menu item as feature. It is working fine.. However in many cases we may require the menu item only in the particular list and not in all the lists created under the site/site collection.

In that case if you deploy the menu as feature, it will be activated in site/site collection level. So the new menu item will be appearing in all the lists created under the scope specified in the feature.

If we need the menu item only in the particular list. It seems its still easy.. it can be achieved easily, if we follow the steps mentioned in the Shailaja's blog
http://shailajakumar.blogspot.com/2008/01/create-custom-context-menu-in.html

If it is not possible to add a content editor. We can still add our javascript function in a separate javascript file and link it in the master page.

No comments: