Tag Info

Hot answers tagged

7

You can do it with SharePoint Management shell: Set-SPSuiteBarBrandingElement -WebAppUrl http://sp2013.intranet.adventureworks.com -Text 'AdventureWorks Intranet' Just replace the AdventureWorks Intranetwith the text you want. More details here


4

you can use $().SPServices <script type="text/javascript" src="/sites/sprc/Resources%20%20jQuery/jquery-1.3.2.min.js"></script> <script type="text/javascript" src="/sites/sprc/Resources%20%20jQuery/jQuery%20SP%20Services/jquery.SPServices-0.5.4.min.js"></script> <script type="text/javascript"> function StartWorkflow(ItemURL, ...


3

Using PowerShell you can do this using $spWeb = Get-SPWeb "http://sharepointSiteUrl" $spWeb.AllProperties["__DisplayShowHideRibbonActionId"] = $false.ToString() $spWeb.Update() C# spWeb.AllProperties["__DisplayShowHideRibbonActionId"] = false.ToString(); spWeb.Update();


3

Following are the steps to remove this button from Ribbon Create an empty SharePoint 2010 Solution, you may give your favorite name to it Add a feature by right clicking on the Features in Solution Explorer Right click on the Project and add a new item, choose empty element and name it Open the Elements.xml file from the newly added item Copy & paste ...


2

Use JS library SPServices from codeplex to get current user permissions: http://spservices.codeplex.com/wikipage?title=GetRolesAndPermissionsForCurrentUser And then just hide the menu item with JS. The hardest part is to obtain the permissions, which can be done smoothly with SPServices. You can add this JS to edited master page, or develop custom control, ...


2

I was originally going to suggest this location: Ribbon.WikiPageTab.PageActions But i did a quick search and this guy's blog has more detailed information. http://sanderschutten.blogspot.com/2010/05/adding-buttons-to-mss2010-ribbon.html


2

My complete solution for SharePoint 2013 - style ribbon-based rich-text editor. I made this some time ago, so I certainly borrowed some code from google. ASPX / ASCX: <div id="editor"> <div id="RTEDiv" tabindex="0"></div> <asp:HiddenField ID="RTEDivHidden" runat="server" /> <div class="commands"> ...


2

You can use the SPRibbon.TrimById(controlId) method to hide controls. You can use other OM methods to determine the user's permission and call the TrimById method accordingly. For example, you could use DoesUserHavePermissions on the page's list item: ...


2

This can be achieved to a certain extent if you, for example, create a list view with appropriately formatted list items and a SharePoint Designer custom action with a javascript like javascript:{ (function() { var myctx = SP.ClientContext.get_current(), selected = SP.ListOperation.Selection.getSelectedItems(myctx), list = []; for (var item in ...


2

The solution is similar to the one I provided in this accepted answer: Attach a Javascript function to an OOTB ribbon button. Here's the code, adopted for your case: <CustomAction Id="TrackDownloadsAction" RegistrationType="List" RegistrationId="100" Location="CommandUI.Ribbon"> <CommandUIExtension> <CommandUIDefinitions> ...


2

var clientContext = SP.ClientContext.get_current(); // Gets current site context var id = GetItemID(); //retrieve selected list item id to update data var listId = SP.ListOperation.Selection.getSelectedList(); var oList = context.get_web().get_lists().getById(listId); this.oListItem = oList.getItemById(id); function GetItemID() { var selectedItems ...


2

Firstly just to warn you that trying to hide the "Share with" option in SharePoint 2013 can be a bit like playing 'whack-a-mole'. The following CSS will hide this option on the context menu and also the ribbon bar (which was probably going to be your next question:-)). We normally have this in a CSS file that's loaded by a custom master page used in all ...


2

Yes this option was removed in 2013, it was introduced in 2010, but now to add the list you have to follow the 2 steps of creating it then add it to your page.


2

You can do it with PowerShell to. $webApp = get-spwebApplication "http://yourWebapplicationUrl" $webApp.SuiteBarBrandingElementHtml = "<div class='ms-core-brandingText'>Insert new title here</div>" $webApp.Update() Or you could change the text and create a link out of it. I've done this so users can just click the title and get back to the ...


2

By using the hints Anders provided and the reference here. I can make it work with below script. Simply put it into a Script Editor Webpart for the page you need it. <script language="javascript" type="text/javascript"> function DoSomethingWithRibbon() { // Gets a reference to a CUI.Ribbon object (CUI.js) var ribbon = ...


1

You can edit the page in designer. Place below CSS inside AdditionalPageHead placeholder <style type="text/css"> #s4-ribbonrow { display: none; } </style>


1

I was able to fix the problem by applying position: fixed to the html-Tag: html { position: fixed; } Of course, this might have some unwanted side effects for other positioned elements (outside of s4-workspace)... But at first sight, everything still seems to work as expected...


1

Convert your images to base64 strings, then use them for image url. For example: Image32by32="data:image/png;base64,iVBORw0KGgoAAAANSU...o+UAAAAASUVORK5CYII=" Image16by16="data:image/png;base64,iVBORw0KXRFEEAANSU...o+UAAAAUFMPFRK5CYII="


1

Wrap you closing code in a setTimeout setTimeout(function{ window.parent.postMessage('CloseCustomActionDialogRefresh', '*'); }, 2000); The number 2000 indicates the number of milliseconds before the function will be executed http://www.w3schools.com/jsref/met_win_settimeout.asp Edit In your case, it seems you want to close when you have successfully ...


1

Ribbon can be hide by using following CSS style statement in Master page .s4-ribbonrowhidetitle { display: none; } Use this blog to get more information


1

here the answer: <script type="text/javascript"> function hideEdit() { var edit = document.getElementById("Ribbon.ListForm.Display.Manage.EditItem-Large"); edit.style.display = "none"; } _spBodyOnLoadFunctionNames.push("hideEdit"); </script> Or Enable/Disable ribbon button based on current item value of a ...


1

So if SP.UI.ModalDialog.commonModalDialogClose(SP.UI.DialogResult, returnVal) is not working you can try this: Closing the Dialog Autohosted and Provider-hosted Apps for SharePoint are hosted outside of SharePoint, and as such can’t leverage typical SharePoint scripts to close the dialog (ex: SP.UI.ModalDialog.commonModalDialogClose()). Luckily, I ...


1

SharePoint Designer 2013 can be used to create a ribbon button for SharePoint list or library. Once clicked, the button will perform a custom action function. Step 1: In SharePoint Designer 2013, open the site containing the library or list where the custom action button on the ribbon will be deployed. Step 2: Open the library or list from the left ...


1

This is not possible with pure SharePoint Online/O365.


1

If you're a bit of a perfectionist as I am, and after a "right" way of doing things, and don't particularly like js/css hacks, then you might want to consider the custom action approach: <CustomAction Id="RemoveRibbonButton" RegistrationType="List" RegistrationId="{GUID-OF-YOUR-LIST-HERE}" Location="CommandUI.Ribbon.NewForm" > ...


1

You will want to modify the NewForm.aspx page as Colbs described in his answer, although the use of JavaScript is not strictly necessary. The "Commit" section's container in the Edit ribbon should have a unique ID assigned to it, which you can find by inspecting the page source. Once you've found the ID, you can set it's CSS Display property to "none" by ...


1

Hiding the Ribbon : In your master page, find the SharePoint ribbon by looking for the line of code that begins with . Place the SPSecurityTrimmedControl code around your ribbon to conditionally hide it based on user permissions. In my example, i've hidden the ribbon from any user who doesn't have the ManagePermissions ability, which is going to be almost ...


1

Listed below is a possible surrogate solution as mentioned by SPArchaeologist that involves modifying the "Read" permission level and giving it the "Manage Personal Views" permission. Click on "Site Actions -> Site Permissions" On the ribbon select the "Permission Tools" tab and press the "Permission Levels" button under the "Manage" group on the far right ...


1

please create a javascript function PreSaveAction() in your page layout. In presave action will fire when you click on save button. You can write any javascript code in this function which needs to be perform just before saving the page. This is working fine in sharepoint list, but I have not tried in publishing page


1

Maybe this can help you. It is a farm solution that permit to copy element of a list. The button copy is in the ribbon tab. SP List Item Copy enables a user to copy SharePoint list items. User can use this feature easily via Ribbon UI.



Only top voted, non community-wiki answers of a minimum length are eligible