Show or hide context menu item based on condition - sharepoint

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.

Related

Chrome Extension Context Menu Items Limit

Although the docs are pointing out:
The maximum number of items that can be added to the top-level browser action context menu is menus.ACTION_MENU_TOP_LEVEL_LIMIT, but you can add any number of items to submenus.
I am only able to add 1000 submenu items to the Chrome Extension context menu.
I don't want to create a UI additionally, because the context menu is really handy for my use case. The user is working in a code editor and can look up code syntax string values via the context menu and can add the value at the position of the cursor where the user right-clicked.
Do you know of such limitations or a workaround besides using an additional UI element?

Extending the "Files" menu

I have a process that involves extending the "Files" menu that is located on (most) acumatica pages (next to notes and activities in the top right)
I would like to add two columns to the table that appears in the smartpanel.
I have been looking for the source code/data behind this smart panel and I cant seem to find it, is it tied into SM202520 (search in files)? Can it be extended?
Am I better off just adding a PXAction button to the 3 or 4 pages I want my extended "files" menu to be?
Thanks
There's no DataView bound to that dialog, you can verify that by using inspect element shortcut key CTL+ALT+CLICK on a grid column header:
In order to be customized the grid needs to be bound to a DataView which inspect element reveals it is not. The lack of DataView binding is by design and therefore that dialog can't be customized.
A grid that can be customized will show the View Name property:

Sharepoint 2010 and DispForm.aspx and adding custom

I am looking to add either a button to the ribbon or adding a form action button control to a list item display form.
I would like to user to have the ability to email the detail of the list item currently being view.
So far....
I created a new DispForm.aspx ...and then added the form action button control. I set the action to a custom action....then SP2010 created a new Site workflow.
I can edit this workflow..but I do not get fields for the "Current Item". I think this has something to do with the fact that its a site workflow and not a list workflow.
I also tried to edit the code in the DispForm.aspx to change the GUID of the workflow in an attempt to start a list workflow with the button.
help?
What I did to get this setup is first create a list workflow.
All work below is done in SharePoint Designer. And I did not edit any pages just created a custom action that showed up in the ribbon.
You can do this by selecting list and libraries from navigation then selecting the list you want to add the workflow to. Once you select that there should be a "block" for workflows just click add a new workflow. With that you can design your workflow and you will have access to current item.
Once you are done with the workflow find the Custom Actions block on the List page (It is below the workflows block for me). Click some where in the block and on the top ribbon you should see Custom Action. When you open up that menu it gives you the option to select the type of action (Ribbon, DetailView, ...). Now just link it to your workflow you just created. (You may have to refresh the list to get the workflow to show up. If it still doesn't show up make sure you published it).

context menu for sharepoint list fields

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!

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