How do I remove items from the Site Actions menu in SharePoint? - 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.

Related

Need help in 2017 R2 - 17.200.0401 modern UI Sitemap

I have created some new categories and added my screen under that category, do we have an option to put these newly created categories and sitemap structure into customization project or else we need to recreate manually in each instance.
Group 1 and Group 2 are the new categories I have created and linked some screen under it.
The steps are:
Add the page to the classic SiteMap (SM200520)
Add classic sitemap entry to your customization project sitemap section and publish it
Add your page to modern UI
In customization project editor SiteMap section click 'Reload from Database'
The Reload from Database step should add the Modern UI sitemap entry.
You can check if the modern UI were packaged in the customization project items (Menu->File->Edit Items). Project items of type SiteMapNode that deploy to modern UI will have XML elements/attributes prefixed with 'MUI' (ModernUI).
if we uncheck entry screen checkbox for GI screens, we are able to get the entry form in both Title Menu and as well as in Menu Item also. But, as these default Acumatica GI screens are in Hidden folder, they are not exposing in Add Menu Item popup, so I moved to Help folder
A combination of John's answer and HB_ACUMATICA's answer seems to be the more complete answer. The steps in HB_ACUMATICA's answer works, except if the classic Sitemap item is contained in certain folders (in my case, Finance/AR/Configuration/Manage), then it won't show up on the modern UI in the list of items to choose. If I moved it to the Help folder, then I could choose it. Anyone know what the criteria is for including an item in the modern UI item choice list?

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!

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.

How to add subpages in Orchard CMS

I added a new page in the main menu, e.g. Products. Now I want to add a subpage e.g. Sub Products below a Products page. I tried all possible options in the dashboard but it didn't work for me. Any ideas how to handle this?
Thanks.
here is a quick solution for this
Go to your dash board -->Gallery -->Modules
search for Hierarchical menu and install it
after installing then go to Configuration -->Features and enable it.
Go go to Navigation .give position like 2 for "Products" and 2.1 for "Sub products".
you will see Sub products appear under Products page.
As of Orchard CMS 1.5 this is supported by the core navigation module. Now you can simply drag and drop menu items under one another in the Admin -> Navigation view. You can then control level rendering under the widget settings for the menu by setting the "Start level" and "Levels to display" properties.
See release notes for further details.
The navigation documentation doesn't seem to be up to date though :(
Take a look at: http://orchard.codeplex.com/Thread/View.aspx?ThreadId=242327
The module to support this (along with many other modules) is available in Orchard's module gallery.

Default content editor in list form doesn't allow image alignment

I need to be able to adjust the alignment of an image in an "Enhanced Rich Text Field" in an announcements list in MOSS 2007. However, the default content editor in the edit form for the list doesn't provide a way to do that. What's the fastest way for me to make sure users can align images? My first thought was to customize the DispForm.aspx and EditForm.aspx pages, but they just have the ListForm web part in the content region and as far as I know, you can't customize the ListForm web part from the designer.
You can't customize the LisForm web part, but you can add a "custom list form" to create a custom edit form. Maybe you haven't seen this article: http://weblogs.asp.net/jan/archive/2006/11/06/Custom-Edit-Forms-for-SharePoint-2007-Lists.aspx
Then you could do some javascript hackery to insert your own button which then calls something similar to existing RTE_InsertImage function to call a pop-up window and do whatever you need (you'll find this function in 12\template\layouts\1033\form.js)
I fail to see (or understand) your issue. I created a new announcements list, created a new item, inserted an image, aligned it to the right, viewed the item and it worked.
Then I proceeded to create a new custom column, choose multiple lines,enhanced rich text field, edited my list item, added an image, centered it, viewed and it was also working.
The only thing I noticed is that the "rich" control does not appears on non-IE browsers.

Resources