Tag Info

New answers tagged

0

Today i finally found a way to to remove button/group/tab from Ribbon by text "Id" via JavaScript. You probably hear about Ribbon.TrimById method. There is no "out-of-box" js analog of it. But from reverse-engineering of core.js I created this: <script type="text/javascript"> ExecuteOrDelayUntilScriptLoaded(function () { var original_f = ...


1

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


0

Ok, I fixed it. For future information what I did is re-inherit the page layout settings from the parent (thus having all page layouts available again), and then breaking the inheritance again to restrict the subsites with the choices. This seems to have fixed (a possibly) broken reference between the ribbon and the page layout.


0

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


1

You can update same solution and then deploy updated WSP file to server. That's it.


0

It appears that the group title needs to be specified in order for sharepoint to work correctly. But a grouptitle can be hidden via css. The class responsible for the group title is "ms-cui-groupTitle". So in css we hide it wit the following command: .ms-cui-groupTitle { visibility:hidden; } This way the group title exists, but it is invisible. ...


1

I think you're command handler lacks one character. Instead of doing 'length = 1', you should do 'length == 1'. Now you're assigning 1 to length, which always results in a positive result. The > 1 works because that's a compare operator and not an assign one :) I verified and this seems to work.


0

On one of my custom masterpage this fixed the issue: #s4-titlerow { display: block; } You could also try with display: block !Important; if the above does nothing.


1

Yes, you can do by placing below CSS: #s4-titlerow { display:block !important; } #s4-titlerow is the default SharePoint class for showing the title row. When you open the ribbon it will make this div as hidden. As other approach you can go with your custom master page. Here is the custom starter masterpage available that you can use: Starter Master ...


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



Top 50 recent answers are included