Table Filter/Charts Add-on - How to Hide the Hide Column filter itself

Casey Maynard February 18, 2021

I would like to be able to hide the 'Hide Columns' filter from the Filter Display itself.

1 answer

3 votes
Katerina Kovriga {Stiltsoft}
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 20, 2021

Hi @Casey Maynard ,

You may use two Table Filter macros - just wrap your table subsequently into the two macros. Then you'll be able to hide the required columns with the help of the first Table Filter macro and allow your colleagues to filter the result table with the hidden columns with the help of the second macro (they won't see that anything is hidden unless they enter edit page mode).

And if you want to prevent your colleagues from hiding columns at all, here are several useful CSS for you:

  • Hide the "Hide Columns" for the live (inline) filtration

Fri 1-3.png

a.show-filter.cursor-pointer[data-filter-type="columnhider"] {
display: none;
}

  • Hide the "Hide Columns" for the filtering panel

Fri 1-2.png

.filter-container.columnhider-element {
display: none;
}

  • Hide the "Hide Columns" for the standard "Add filters" dialog

Fri 1-1.png

select.filter-type option[value="columnhider"] {
display: none;
}

These CSS can be added to the whole Confluence instance or to specific spaces (documentation).

David August 30, 2022

Hi Katernina,

Thanks for this solution but this applies to a whole space or an instance. Can we do this on page level only?

 

Rgds,

DB

Katerina Kovriga {Stiltsoft}
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 30, 2022

You may use the standard Confluence HTML macro on the specific page, it's available for Server and Data Center.

Like David likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events