Hot answers tagged

8

Check http://sharepoint.stackexchange.com/a/52877/35604: <script type="text/javascript"> function Custom_Submit(command) { SP.Ribbon.PageState.Handlers.showStateChangeDialog(command, SP.Ribbon.PageState.ImportedNativeData.CommandHandlers[command]); } </script> <input type="button" ...


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

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 = ...


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 ...


3

I think you are almost there except that you have used assignment operator which will always return TRUE. Instead you have to use comparison '==' or '===' operators. update in below line EnabledScript="javascript:SP.ListOperation.Selection.getSelectedItems().length === 1;"


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

EASY solution is the CSS. Just inspect element from browser and apply some css like display: none; If you need this across the site, then add these style into your master page. If you need this for a specific library only, then add these into that specific page using Content Editor Web Part. You can use this plugin in Chrome for generating css.


2

Use EnabledScript property in CommandUIHandler. Example: EnabledScript="javascript: function enableButton() { var items = SP.ListOperation.Selection.getSelectedItems(); var ci = CountDictionary(items); if (ci > 0) { return true; } } enableButton();"


2

You mean like using a link? Such as this one: {Site URL}/_vti_bin/owssvr.dll?CS=109&Using=_layouts/query.iqy&List={List GUID}&View={View GUID}&CacheControl=1 from the post Create Link to Export Library Contents to Excel


2

Try the following CSS: /* Hide Calendar Ribbon Body */ #RibbonContainer ul[id$="Calendar"] { display: none !important; } /* To hide Calendar Ribbon tab */ #RibbonContainer li[id$="Calendar-title"] { display: none !important; } You can add the above CSS either to the Script Edito/Content Editor web part or embed into the page.


2

If the list contains only one content type then in the CustomAction you need to define following three properties: RegistrationType="ContentType" RegistrationId="YourContenttype" Location="CommandUI.Ribbon.ListView" In the CommandUIHandlers, there is EnabledScript attribute which helps in enabling and disabling a button. You can refer to an .js file which ...


2

It is a two step process. The Location="CommandUI.Ribbon.DisplayForm" of CustomAction specifies that a button will be added to Display form. And Location="Ribbon.ListForm.Display.Manage.Controls._children"> of CommandUIDefinition specifies that it will be added to the Manage tab of the Display form. Full Example: <CustomAction ...


2

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 ...


2

This is not a bug. If you have more than one web part on a page then you must click the one you want the ribbon for.


2

I just opened the new document set form by going to ribbon > files > new document > new document set, copied the url and created a quick launch link with the same url. It works fine for me. Steps : Go to ribbon > files > new document > new document set in the given list Copy the whole URL In the right, at the bottom of the quick launch ...


2

Make sure that the content type of the missing page layout is set properly to "Page Layout" If you are deploying it from visual studio it should be something like below <File Path="PageLayouts\PageLayoutOneCol.aspx" Url="WABOneCol.aspx" Type="GhostableInLibrary" IgnoreIfAlreadyExists="TRUE" Level="Published" ReplaceContent="true"> ...


2

You specified a wrong Id. Use Ribbon.Documents.New.NewDocument instead of Ribbon.Library.Actions.NewDocument. Your code should look like this: $CustomAction = $list.UserCustomActions.Add() $CustomAction.Title = "Hide New Document" $CustomAction.Location = "CommandUI.Ribbon" $CustomAction.commandUIExtension = " <CommandUIExtension> ...


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 ...


1

You can use ToolTipTitle and  ToolTipDescription of the Button element in custom action.


1

You can use this function: function scriptStart(xSelectedItemId, xSubscriptionId) { //var xSubscriptionId = "{7d028513-b2ea-4ad0-a996-9b807f2beb2e}" console.log("scriptStartWF.js: Ribbonbutton script started, Workflow subscriptionId==" + xSubscriptionId + ", selected Item Id==" + xSelectedItemId) var scriptbase = ...


1

Yes,You can edit by modifying the ms-core-brandingText class by seattle.master follow the steps given in below article to achieve the same. http://sharepoint.rackspace.com/sharepoint-2013-how-to-change-sharepoint-branding-text-in-the-upper-left-part-of-your-screen


1

You could do it with javascript I guess, the name of View is Ribbon.Read, so this should work: SelectRibbonTab('Ribbon.Read', true);


1

Are they anonymous sites? If so login to get the ribbon. If not, it could be some CSS issue. Get the help of developer tool in browser (F12) and ascertain the issue Let me know if you have any questions


1

If you want to enter the page in edit mode just add ?ControlMode=Edit&DisplayMode=Design to your URL. If you want the page list item in edit mode you can get the url via JS like this: var ctx = SP.ClientContext.get_current(); var list = ctx.get_lists().getById(_spPageContextInfo.pageListId); ctx.load(list, 'DefaultEditFormUrl'); ...


1

Your CommandUIExtension should look like below: <CommandUIExtension xmlns="http://schemas.microsoft.com/sharepoint/"> <CommandUIDefinitions> <CommandUIDefinition Location="Ribbon.List.CustomizeList.Controls._children"> <Button ...


1

Enabled SharePoint Server Publishing Infrastructure feature on the site collection level and then the SharePoint Server Publishing feature must be activated on the site level


1

You can use the EnabledScript attribute to enable the action just for your Meeting List. <CommandUIHandler Command="Ribbon.ListItem.CustomGroup.Controls.BtnSayHello.Command" CommandAction="javascript:doYourStuff();" EnabledScript="javascript: function isEnable(){ if(SP.ListOperation.Selection.getSelectedList() == "meeting list GUID"){ ...


1

Assigning a list guid to registration id is not possible. In your case you would need to have a specific list-template-id or content type assigned to this list and assign this to the registration id. You get a custom listtemplate-id if you create a list definition in a solution and create a new instance of this list. Otherwise you could use the ...



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