Sharepoint hide ribbon for standard users - sharepoint

is it possible to hide te ribbon for standard users in Sharepoint ?
I want to see the ribbon when I am a administrator, but what I want is that people can only add a document and not do edit in the ribbon.

SharePoint has no standard way (configuration) to hide Ribbon only for selected users. You can use javascript, maybe jQuery to do it. Ribbon is rendered into <div id="RibbonContainer">.
You can get info about current user via javascript client object model. See MSDN.

Related

Designing a ribbon button in OfficeJs using manifest

Is it possible to add spacing in between ribbon buttons? I cant seem to design the ribbon in anyway and am constricted to OfficeJs standards.
I would like to design my ribbon, I am currently developing using AngularJS and have created my own custom ribbon but still cant design or add spacing on my buttons.
You can place any controls for your custom ribbon on the task pane. But ribbon customizations in Office applications (made by web add-ins) allow the following control types:
Simple buttons - trigger specific actions.
Menus - simple menu dropdown with buttons that trigger actions.
There is no property for configuring spaces and etc. Read more about possible ribbon customizations in the Add-in commands for Excel, PowerPoint, and Word article.
You can post or vote for an existing feature request on Tech Community where they are considered when the Office dev team goes through the planning process.

Can't get ribbon to show with IsDlg=1 on Application Pages

I am using SharePoint 2013.
I am using a modal dialog with the SP.UI.ModalDialog.showModalDialog method.
I also have a Ribbon in the custom application page.
This all worked in SharePoint 2010, but in 2013 it doesn't work. The ribbon is no longer showing.
How can I resovle this?
In the SharePoint 2013 masterpage the elements that shouldn't be visible in the dialog mode (IsDlg=1) have the "s4-notdlg" CSS class applied.
To solve your problem you have the following options:
Dynamically (using jQuery for example) remove the s4-notdlg class form the div of the.Ribbon section
Use the open-source library SharePoint 2013 Easy Ribbon API. We have tested this library with custom application pages, and it seems to satisfy all our needs.

Sharepoint 2010 : Hiding Edit in datsheet option from document library only

I am migrating MOSS 2007 site to sharepoint 2010 without UI upgrade. I noticed that document library action tab includes menu called "Edit in datasheet". I need to know how do I hide it from ONLY document library. Please Help.
Another solution. Document Library settings->advance settings-> Allow items in this document library to be edited using the datasheet? = N
A possible way is to edit the Display form for the library DispForm.aspx using Sharepoint Designer and use some client side code (Javascript/Jquery) to hide the button.
If you have access to jquery something like this will do:
$(document).ready(function() {
$("[text='Edit in Datasheet']").remove();
});
Check this article for more details

Crm Dynamics Plugin to call a contact

I am new to dynamics crm programming. Therefore I am having difficulties in understanding few basic things. I am trying to write a plug-in that would call a selected contact when a custom menu button is clicked. All I can understand is I have to create a menu button on the ribbon and handle its events however I cannot find how to create a menu button programmatically. I should be able to do this because when our software is installed and configured for a crm server the UI of the crm pages needs to be updated automatically. The flow is like this. Go to contacts, select a contact and when you click the custom menu button (should be available on the ribbon after our product's installation) the option to call home, office or mobile should be presented to the user and then the call should be placed to the contact. How can I achieve this? Is it handling the javascript events or are there any readily available API to handle the ribbon menu items?
The Ribbon is defined in the Ribbon XML of the solution. You can't programmatically create a button on the fly (although you can use javascript to hide/disable it). Try the Ribbon Editor to get your feet wet with the ribbon.
From there you can use javascript on the click of the button to perform whatever functions you need.

Show ribbon button in Dynamics CRM 2011, if metadata value is equal to a specific value

is there a way to display a custom ribbon button only, if the value of a metadata attribute is equal to a specific value?
In my example I want only show a custom ribbon button on all forms, if the sharepoint documentmanagement is enabled for the current entity type.
For example:
I activated the sharepoint documentmanagement for the entity "account" but not for the entity "contact". If I am at the form for an account I want the crm to show the custom button. If I am at the form for a contact I want the crm NOT to show the custom button.
Best Regards and thank you,
Gerrit
Only way i can suggest is to use CustomRule that will enable/disable button instead hiding it (here is more info about disable rules). Custom action could call jsript, which will execute RetreiveEntityRequest to verify is Sharepoint is Enabled for entity.
Normally you would use EntityPropertyRule from ribbon display rules. Unfortunately SharePoint integration property is not among supported ones.
Here you can find more information how to customize ribbon

Resources