How to Remove Icons in Classic for Export to Excel and PowerPoint and also from the Gear Menu
search cancel

How to Remove Icons in Classic for Export to Excel and PowerPoint and also from the Gear Menu

book

Article ID: 281505

calendar_today

Updated On:

Products

Clarity PPM On Premise Clarity PPM SaaS

Issue/Introduction

Use Case: Users use the Modern UX. A few classic portlets are embedded in Channels through Blueprints.

Users are confused when using the Classic Export buttons as the result looks different than the exports through Modern (for example, the number of rows is limited in Classic Export to Excel/PowerPoint).

The requirement is to remove:

"Export to Excel", "Export to Powerpoint"

and "Export to Excel (Data Only)" should remain.

Current Options:

 

Preferred Options:

Environment

Clarity 16.2.1

Cause

This is controlled by CSS located in Administration > "UI Themes"

Resolution

This solution is provided "as is", and support is limited.

Navigate to the Administration Menu in Classic > "UI Themes"

Take a backup of your existing custom UI theme by creating a new UI theme.

Add the following to the bottom of the CSS code:

/* Remove "Excel" icon  */
.caui-workspacePageToolbarE2e {
display:none;
height: 21px;
width: 20px;
background: url(ui/uitk/tngtheme/images/workspace.png) no-repeat -0px -108px;
}

/* Remove "Powerpoint" icon */
.caui-workspacePageToolbarE2ppt {
display:none;
height: 21px;
width: 20px;
background: url(ui/uitk/tngtheme/images/workspace.png) no-repeat -20px -108px;
}

/* Remove "Export to Excel" from the Gear menu */
.ppm_button_menu_item:nth-child(5) {
  display:none;
}

/* Remove "Export to Powerpoint" from the Gear menu */
.ppm_button_menu_item:nth-child(6) {
  display:none;
}

 

The .ppm_button_menu_item:nth-child(6) refers to the index of the menu item, so in this case, we are setting not to display the 6th menu item.

 

Screenshot: