Saturday, January 20, 2007
Hiding SharePoint 2007 List Context Menu Items
Am sure lot's of people would be wondering how to hide menu items of a list eg document libraries "Send to " menu item .
In olden days of SharePoint 2003 this used to be achieved using playing around with the OWS.jss file ,though the customization is same in SharePoint 2007 too but the file has been changed . Now the modifications needs to be done in CORE.JS file located at "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\1033\CORE.JS"
Let's change the file and see the difference , In order to hide menu item e.g "Send to " search for function named "AddSendSubMenu()" in CORE.JS and comment the function call . as shown in figure below:
That's it check the menu in doc lib now , does it looks like mine:-)
NOTE: Make sure you take back up of Core.js file before making any change in order to prevent any server functionality malfunction.