Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to use CSS customization to hide personal data for the customer?

Kristin Beck March 11, 2020

 

 

Hi everyone,

As content admin of Confluence, I would like to know how to use CSS in the Space Stylesheet to hide our contributors'/authors' names for the customer in the Page History, when selecting "compare selected versions"?

Also, we would like to know how to hide "Space tools" as under "Space details", our admins' names Page History compare selected versions.jpgare shown:
Versions compared.png
How to hide Space tools.jpg

1 answer

1 accepted

3 votes
Answer accepted
Sven Schatter _Lively Apps_
Atlassian Partner
March 11, 2020

Hi Kristin,

there's several CSS selectors you need to do this.

  • Space Admins: #spaceAdmins, label[for="spaceAdmins"]
  • Page History: #page-history-container .contributors .confluence-userlink
  • Version Diff: .diff-menu .confluence-userlink

Combined into a single selector you get:

#spaceAdmins, label[for="spaceAdmins"], #page-history-container .contributors .confluence-userlink, .diff-menu .confluence-userlink

If I enter this selector into the global HideElements for Confluence custom CSS selector field, it works like a charm.

he_global.png

With HideElements enabled, this is what I get for the Space Admins list:

spaceadmins.png

And this is what I get for the Page History overview:

pagehistory.png

And this is what I get for the Version Diff view:

versiondiff.png

Now, you could also just add the selector together with a "{ display: none !important; }" to your global CSS sheet - but then it's always hidden in all spaces. With HideElements you get a bonus ability: you can go into the HideElements space settings and overwrite the custom CSS selector for a certain space!

he_space.png

What this means is: you can hide this information from "customer spaces", but you are still able to show this information in internal spaces, where you might need it. This might be very useful for you if you have both internal & customer space on the same instance!

Hope this helps! :)

Cheers,
Sven

P.S.: If you are doing this for compliancy reasons (e.g. GDPR) you should talk to your lawyers / auditors again about whether just hiding this information is enough in your case. Please be aware that Confluence is still storing and delivering this information to users - this is just cosmetical.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events