context menu for sharepoint list fields - sharepoint

Is it possible to set context menu to any fields in a sharepoint list, similar to the one dispalyed for the title field with link and edit menu ? Also i need the previlige to configure(add/remove) the options available in the context menu.Any suggestions?
Thanks!

There's no out-of-the-box option to attach the context menu to a different field, but there is a solution using powershell: http://www.ilovesharepoint.com/2008/08/add-sharepoint-list-item-context-menu.html
Adding options to the context menu can be done by putting a custom action in a feature: http://blog.thekid.me.uk/archive/2007/06/23/sample-editcontrolblock-customaction-for-sharepoint.aspx
There are things you can do to remove options from the context menu: http://metahat.blogspot.com/2007/01/hiding-sharepoint-2007-list-context.html
However be aware that editing the OOB javascript files is NOT supported and NOT good practice!

Related

Extension-Specific Context Menu

I'm trying to add an item to the right-click menu on my extension. I've tried to find a method which would work, but a lot of the results seem to deal with context menus on the actual page, not the extension icon itself. The contextMenus API doesn't seem to work for this, unfortunately.
There is currently no API for that. Head for Chromium Issue 78631 and click the star to cast your vote for it and receive updates by e-mail. In the meantime, you could create a popup with a menu that lists both the primary action and the actions you would have put in the context menu.
(I assume you're trying to add the context menu item to your browser action. Your question is a little ambiguous.)

SharePoint 2007 - add additional menu to Global Navigation in a Master Page

In the source code for a master page, there is a section that has the following ASP.NET item: . This contains the "Welcome (User Name)" and Site Actions menus.
How do I create an additional menu that is similar to the look and feel of the Welcome menu? I've tried to create Front End HTML that behaves similar to the out of the box SharePoint menus, but it isn't quite right. I would prefer to utilize an ASP.NET or SharePoint control that acts similar to the SharePoint menu if that is possible.
For example, is <SharePoint:AspMenu> the appropriate control to use?
Thanks,
Robert
i am sure you will get better answer than this but just wanted to point what i have done to do this
i have added javascript library (JQuery) (for some other reason ) and when time come to do this thing i just added a JQuery code that creates another item in the navigation list with appropriate style and css class with the needed link and caption.
You could try another instance of the PersonalActions control with a custom GroupId. But when the control is rendered, it might also say "Welcome, [User]" just like the original.

Show or hide context menu item based on condition

How do I show or hide context menu items based on condition (For example, some item field value "True" or "False")? I`v added some custom actions for now (using features to add them), but would be nice to manipulate visibility of them.
I`m using WSS 3.0.
Thank you for response.
There is no Out of the Box option Provided by SharePoint / WSS 3.0 to dictate the Visiblity of the menu Item other than below items
Permission of the user on the Item (Add /Edit etc)
GroupID or as configured in the Feature of SharePoint
Status of the Items (Approved/Check In)
Two option you can try out is to do some Java Script hack using jQuery to control the MenuItem Visibility else use the SPGridView but in this case you will need to create a New Menu altogether and Adding of Menu Items using Feature is not possible.

Asp.Net Menu Highlighting

I try to figure out what's the best strategy to manage a menu in Asp.Net and highlight the "active" menu-item.
That's have to be done in the MasterPage but it's the Page that know what menu-item to highlight.
I have found that implementing a custom SQL Site Map Provider combined with impementing a fully custom menu component, one just need to render the menu html depending on the application/design etc. For intance I have just recently implemented the jQuery Superfish Menu using our Menu component.
jQuery is great for searching and selecting particular classes/elements and applying styles/classes as required.
Some Helpful URLS:
http://users.tpg.com.au/j_birch/plugins/superfish/
http://msdn.microsoft.com/en-us/magazine/cc163657.aspx
http://dotnetslackers.com/VB_NET/re-17169_Rendering_a_databound_UL_menu.aspx
HTH

How do I remove items from the Site Actions menu in SharePoint?

How can I customise the Site Actions menu to remove or rename 'standard' menu items? Where are the site actions menu items defined?
The site actions menu is defined in the Siteaction.xml in Template\layouts\editingMenu under the 12 hive. The following link shows how to manually remove items.
Customize Site Actions Menu
I have added options to the menu using features, but have never tried to hide OTB option in code. I would be interested in your results.
Good luck!
I was able to hide the menu item I wanted to hide by using ConfigMenu="Delete" in the relevant XML node of SiteActions.xml. e.g.
<ConsoleNode ConfigMenu="Delete" ChangedNodeID="wsaCreateSite" />
The valid values for ConfigMenu are documented at http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.publishing.webcontrols.configmenuoptions.aspx
I have used a control that runs javascript to hide the entire site actions menu for users of a certain privelege level.
That approach may be an option if you need to remove items for particular users.
It is not the worlds classiest approach however.

Resources