Customize SharePoint Ribbon Tab

The SharePoint ribbon tab (Outlook 2010/2013) can be hidden or renamed using via the following examples:

 

 

 

Example 1: Rename the SharePoint tab to "Intranet"

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <outlookMenu>
        <menuItem tagName="SharePointMenu" action="delete"/>    
        <menuItem tagName="SharePointMenu" caption="Intranet" action="insert"/>
    </outlookMenu>
</configuration>

 

 

Example 2: Hide the SharePoint tab

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <outlookMenu>
        <menuItem tagName="SharePointMenu" action="delete"/>
        <menuItem tagName="SharePointMenu" visible="false" action="insert"/>
    </outlookMenu>
</configuration>

 

 

Example 3: Hide the View group on the SharePoint tab

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <outlookMenu>
        <menuItem tagName="SharePointMenuViewGroup" action="delete"/>
        <menuItem tagName="SharePointMenuViewGroup" visible="false" action="insert"/>
    </outlookMenu>
</configuration>

 

 

Customizing the View as SharePoint / Outlook Button

The Switch to SharePoint / Outlook button looks different dependent on the current view of SharePoint.

Due to this, the <ribbonObject> node needs some additional child nodes to define the labels of each view. This is done with the <ribbonObjectState> node.


Below examples how the nodes are structured within the configuration file:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <ribbonObject tag="OPM_SharePointViewSwitch"> 
        <ribbonObjectState state="SwitchToOutlook" label="View As Outlook" /> 
        <ribbonObjectState state="SwitchToSharepoint" label="View As SharePoint" />
    </ribbonObject>
</configuration>

Example: Changing the Switch button to adjust the label when in different states

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <ribbonObject action="insert" tag="OPM_SharePointViewSwitch">
        <ribbonObjectState state="SwitchToOutlook" label="View As Outlook"/>
        <ribbonObjectState state="SwitchToSharepoint" label="View As SharePoint"/>
    </ribbonObject>
</configuration>

 

Example: Changing the switch label back to defaults

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <ribbonObject action="delete" tag="OPM_SharePointViewSwitch"/>
</configuration>