Customize SharePoint Library Menu Items
Hi, In a library with file, the menu items available for any file is: View Properties, Edit Properties, Manage Permissions, Edit in <ApplicationName>, Delete, Send To, Check Out, Workflows, Alert Me . Now, I want to get rid of Edit Properties, Manage Permissions, Edit in <ApplicationName>, Delete, Check Out . Added to this is the need to remove the option in the Actions menu that states "Open With Windows Explorer " and finally the "Upload " menu is to go out. Any JScript for this or a file I need to edit to get this result? I need this because the business wants it out, its bordering on security. ThanksYou've only got one life; help as many people as you can, and enjoy it while it lasts.
September 3rd, 2010 12:11pm

Hi, check this link: How to: Hide a Menu Item in the ECB from SharePoint List Items: http://msdn.microsoft.com/en-us/library/cc768565.aspx How to Remove or hiding items in List toolbar in Sharepoint Server 2007: http://blogs.msdn.com/b/dipper/archive/2006/10/05/how-to-remove-or-hiding-items-in-list-toolbar-in-sharepoint-server-2007.aspx Cheers, Daniel Bugday Web: SharePoint Forum Blog: SharePoint By Bugday
Free Windows Admin Tool Kit Click here and download it now
September 3rd, 2010 1:36pm

To hide Toolbar items you could use the following tool from codeplex Toolbar Manager This Feature allows you to selectively show and hide menu items on the standard list/library toolbar. The feature adds a new web part to the gallery that you can place on any list/library view page. http://features.codeplex.com/ For javascript option refer http://aspalliance.com/1807 For hiding ECB menu items you could either use the option suggested by Daniel or try out the following javascript <script type="text/javascript"> var elemTable=document.getElementById('ECBItems'); if (elemTable !=null) { var elemTBody=elemTable.childNodes[0]; //iterate each table row to find the correct ECB menu item to hide(remove) for (var iMenuItem=0; iMenuItem < elemTBody.childNodes.length; iMenuItem++) { var elemTR=elemTBody.childNodes[iMenuItem]; var elemTDTitle=elemTR.childNodes[0]; var title=GetInnerText(elemTDTitle); //here we filter on title, but the table contains more information if need be if(title =='Preview') { elemTBody.removeChild(elemTR); } } } </script> Please remember to mark your question as "answered" if it solves your problem. My SharePoint Blog http://dhireny.blogspot.com
September 3rd, 2010 6:55pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics