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.
Subscribe to: Post Comments (Atom)
Architecting Resilient application on AWS
Great whitepaper on improving resiliency of distributed systems: https://docs.aws.amazon.com/whitepapers/latest/availability-and-beyond-imp...
Note : In below scenario jenkins was deployed in Linux container Scenario: Jenkins build failed with error. java.io.IOException: error...
Ever wanted to have a people picker kind of control in Infopath form and that too in browser mode. Did i heard yes :) , well there is a Acti...
Simple concept but still pain in head if unable to figure out :) Response.Redirect("#");
I'm trying to disable some of the context menu using a webpart to override the appropriate function, but I cannot manage to disable the menu item only for a content type of a doclib and not for all.
Can you help me?
What i would like to do is, how can i hide some of that buttons,from the dropdown, associated with permission level or permission group.
For example, i've got a permission level with the options edit,add documents, that i'm using in documents library, but i'de like that he couldn't publish documents. How can i hide the publish major version button in order to the logged user, with different permission level?
I want to use this as feature , so i can activate or unactivate...
- Can anyone let me know how to approach??
Thanks in advance :)
I am also looking for an approach to hide context menu items using a feature. Please let me know if anybody knows it. Thanks.
You will have to rebuild the menu from scratch, while applying your specific rules to skip specific items.
I've tried the solution that is showed and it didn´t work....
Very nice article and good information!!
I have different situation from this and I am looking for solution, can you please help me for this?
I would like to remove menu items “Edit Item” from specific custom list, if I go with above solution then it will remove menu options from all custom list, but what I need to do for removing option from only one list.
Is there any way in which I can change URL of "Edit Item" page from EditItem.aspx to my layouts custom ASPX page? In SP designer, while changing page name (supporting files) from custom list, I can't see files from layouts folder ..
Actually finally I am looking for to give my custom ASPX page URL into “Edit Item” option or hide that option from specific list and add new custom action which will point to new layouts page, I already added new custom action into Edit Control block. But I am facing some of the challenges with other items.
Thank you very much for your time.
Thanks for the good article.
Here is the alternate solution without changing core.js:
Great Article !! Is there a way to send document as attachment along with the link in Send To Context menu?
Post a Comment