Good approach for data sensitivity markings?

AI-generated summary

A user asks for advice on integrating data sensitivity markings (based on TLP standards) into a private Discourse instance, seeking ways to display them prominently with specific color and formatting requirements. piffy suggests using custom CSS for tag styling, while thoka explains that tags can influence visual appearance via CSS and mentions tag icons. thoka also notes that tags can be included in email subjects. The original poster, mehaase, shares that they successfully implemented custom CSS for tags following the sensitivity naming convention and used tag groups to enforce their use, praising Discourse’s flexibility mehaase.

Hi, my company is standing up a private Discourse instance (using Discourse’s hosting). One unique feature of our community is that we have adopted standardized data sensitivity labels created by a non-profit in our sector: Traffic Light Protocol (TLP). These data markings help our community members understand what content can be reshared and where it can be reshared. The standards have unique constraints like specifying certain foreground/background colors, font size, etc.

Any suggestions for integrating these data sensitivity markings into our instance? I’d like to display the marking at the top of the category and/or the top of each post. Tags work okay but don’t support the required color scheme. We have also tried putting the marking in the post title; this is harder to enforce, and also doesn’t support the color scheme.

I’m still fairly new to running a Discourse instance. Appreciate any replies.

1 Like

Here you go

1 Like

Tags used on topics can be used to change style via CSS.
They are added to the body class and also as data attribute to the tag.
This way you can adapt visual appearance of tags and content according to your specs.

Another option would be to use tag-icons.

2 Likes

The protocol also asks you to represent these labels in notifications.
You can enable tags in email subjects.

Thank you everybody for the helpful replies! I ended up using this suggestion to write some custom CSS for tags that follow the data sensitivity naming convention:

It looks great, and I used tag groups to require users to select a sensitivity marking for each new post.

I love how flexible Discourse is.

8 Likes