Du SharePoint, du silverlight, pas mal de C#, un peu de powershell et surtout du Microsoft
mardi 23 octobre 2012
Hide button in sharepoint 2010 Ribbon / Cacher les boutons du ruban SharePoint 2010
Feature à appliquer sur un type de contenu / template de liste par exemple.
Il suffit ensuite de spécifier la localisation du bouton.
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomAction Id="HideCustomActionDocumentSource"
Location="CommandUI.Ribbon"
RegistrationType="ContentType"
RegistrationId="0x0101002D02DF72FAFB4EAB9446F92337C759AE01">
<CommandUIExtension>
<CommandUIDefinitions>
<CommandUIDefinition Location="Ribbon.Library.ViewFormat.Standard" />
<CommandUIDefinition Location="Ribbon.Library.ViewFormat.Datasheet" />
<CommandUIDefinition Location="Ribbon.Library.Datasheet.NewRow" />
<CommandUIDefinition Location="Ribbon.Library.Datasheet.ShowTaskPane" />
<CommandUIDefinition Location="Ribbon.Library.Datasheet.ShowTotals" />
<CommandUIDefinition Location="Ribbon.Library.Datasheet.RefreshData" />
<CommandUIDefinition Location="Ribbon.Library.CustomViews.CreateView" />
<CommandUIDefinition Location="Ribbon.Library.CustomViews.ModifyView" />
<CommandUIDefinition Location="Ribbon.Library.CustomViews.CreateColumn" />
<CommandUIDefinition Location="Ribbon.Library.CustomViews.NavigateUp" />
<CommandUIDefinition Location="Ribbon.Library.CustomViews.CurrentView" />
<CommandUIDefinition Location="Ribbon.Library.CustomViews.DisplayView" />
<CommandUIDefinition Location="Ribbon.Library.CustomViews.PreviousPage" />
<CommandUIDefinition Location="Ribbon.Library.CustomViews.CurrentPage" />
<CommandUIDefinition Location="Ribbon.Library.CustomViews.NextPage" />
<CommandUIDefinition Location="Ribbon.Library.Share.AlertMe" />
<CommandUIDefinition Location="Ribbon.Library.Share.ViewRSSFeed" />
<CommandUIDefinition Location="Ribbon.Library.Actions.TakeOfflineToClient" />
<CommandUIDefinition Location="Ribbon.Library.Actions.ConnectToClient" />
<CommandUIDefinition Location="Ribbon.Library.Actions.ExportToSpreadsheet" />
<CommandUIDefinition Location="Ribbon.Library.Actions.OpenWithExplorer" />
<CommandUIDefinition Location="Ribbon.Library.Actions.AllMeetings" />
<CommandUIDefinition Location="Ribbon.Library.CustomizeLibrary.AddButton" />
<CommandUIDefinition Location="Ribbon.Library.CustomizeLibrary.EditList" />
<CommandUIDefinition Location="Ribbon.Library.CustomizeLibrary.EditDefaultForms" />
<CommandUIDefinition Location="Ribbon.Library.Settings.ManageWorkflows" />
<CommandUIDefinition Location="Ribbon.Library.Settings.LibraryPermissions" />
<CommandUIDefinition Location="Ribbon.Documents.New.NewFolder" />
<CommandUIDefinition Location="Ribbon.ListItem.New.NewFolder" />
<CommandUIDefinition Location="Ribbon.Documents.New.NewDocument" />
<CommandUIDefinition Location="Ribbon.Documents.EditCheckout.CheckOut" />
<CommandUIDefinition Location="Ribbon.Documents.EditCheckout.CheckIn" />
<CommandUIDefinition Location="Ribbon.Documents.EditCheckout.DiscardCheckOut" />
<CommandUIDefinition Location="Ribbon.Documents.Manage.ManagePermissions" />
<CommandUIDefinition Location="Ribbon.Documents.Share.EmailItemLink" />
<CommandUIDefinition Location="Ribbon.Documents.Share.AlertMe" />
<CommandUIDefinition Location="Ribbon.Documents.Copies.SendTo" />
<CommandUIDefinition Location="Ribbon.Documents.Copies.ManageCopies" />
<CommandUIDefinition Location="Ribbon.Documents.Copies.GoToSourceItem" />
<CommandUIDefinition Location="Ribbon.Documents.Workflow.ViewWorkflows" />
<CommandUIDefinition Location="Ribbon.Documents.Workflow.Publish" />
<CommandUIDefinition Location="Ribbon.Documents.Workflow.Unpublish" />
<CommandUIDefinition Location="Ribbon.Documents.Workflow.Moderate" />
<CommandUIDefinition Location="Ribbon.Documents.Workflow.CancelApproval" />
<CommandUIDefinition Location="Ribbon.Documents.FormActions.RepairItems" />
<CommandUIDefinition Location="Ribbon.Documents.FormActions.RepairAllItems" />
<CommandUIDefinition Location="Ribbon.Documents.FormActions.MergeDocuments" />
</CommandUIDefinitions>
</CommandUIExtension>
</CustomAction>
</Elements>
Liste complète
http://msdn.microsoft.com/en-us/library/ee537543.aspx
Inscription à :
Publier les commentaires
(
Atom
)
adding few links which were not in ur post :P
RépondreSupprimer