How can I, via a feature, hide the 'Connect To Outlook' button from the 'Connect & Export' group in the 'Calendar' tab when I view a calendar on a SharePoint 2010 site?
I have tried several variations, none of them work. What is the correct XML for this?
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<HideCustomAction
Location="Ribbon.Calendar.Calendar.Actions"
HideActionId="ConnectToClient">
</HideCustomAction>
</Elements>
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<HideCustomAction
Location="Ribbon.Calendar.Calendar.Actions"
HideActionId="Ribbon.Calendar.Calendar.Actions.ConnectToClient">
</HideCustomAction>
</Elements>
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<HideCustomAction
Location="Ribbon.Calendar.Calendar.Actions.Controls"
HideActionId="Ribbon.Calendar.Calendar.Actions.ConnectToClient">
</HideCustomAction>
</Elements>
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<HideCustomAction
Id="RemoveRibbonButton"
Location="Ribbon.Calendar.Calendar.Actions.ConnectToClient">
</HideCustomAction>
</Elements>
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomAction
Id="Remove.Calendar.ConnectToClient"
Location="CommandUI.Ribbon">
<CommandUIExtension>
<CommandUIDefinitions>
<CommandUIDefinition
Location="Ribbon.Calendar.Calendar.Actions.ConnectToClient" />
</CommandUIDefinitions>
</CommandUIExtension>
</CustomAction>
</Elements>
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomAction
Id="RemoveRibbonButton"
Location="CommandUI.Ribbon">
<CommandUIExtension>
<CommandUIDefinitions>
<CommandUIDefinition
Location="Ribbon.Calendar.Calendar.Actions.ConnectToClient" />
</CommandUIDefinitions>
</CommandUIExtension>
</CustomAction>
</Elements>