Color for new priority

Moderator: crythias

Post Reply
andy17d
Znuny newbie
Posts: 78
Joined: 30 Jan 2014, 15:27
Znuny Version: 4.0.19
Location: Poland
Contact:

Color for new priority

Post by andy17d »

Hello,

I created a new priority (apart from the 5 built-in ones) and the question here is how can I set its color?

Best regards.
Andy
OTRS 4.0.19/6.0.26, openSUSE 12, MySQL 5.5

KodIT Usługi Informatyczne - Odzyskiwanie danych Poznań - Serwis Komputerowy
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Color for new priority

Post by root »

Hi,

You might create tyour own css files, search the forum for this. Or use Znuny4OTRS-CustomPriorityColor. I recommend installing Znuny4OTRS-Repo to have it available via the package manager.

- Roy

P.S.: You should update your system if it's really a 4
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
andy17d
Znuny newbie
Posts: 78
Joined: 30 Jan 2014, 15:27
Znuny Version: 4.0.19
Location: Poland
Contact:

Re: Color for new priority

Post by andy17d »

I added the following line to the Core.Default.Css file, but unfortunately it doesn't work :(

Code: Select all

.Flag span.PriorityID-0 {
    background-color:#03c4f0;
}
P.S.: You should update your system if it's really a 4
We are in the process of upgrading to version 6 so the days of version 4 are now numbered :)

EDIT:

I gave up css and installed Znuny4OTRS-CustomPriorityColor and everything works.
I have to do a little research on where to change these colors after installing this add-on, but it worked.

Thank you and best regards.
OTRS 4.0.19/6.0.26, openSUSE 12, MySQL 5.5

KodIT Usługi Informatyczne - Odzyskiwanie danych Poznań - Serwis Komputerowy
zzz
Znuny superhero
Posts: 888
Joined: 15 Dec 2016, 15:13
Znuny Version: All
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: Color for new priority

Post by zzz »

Hello Andy,

If you make changes to CSS or JavaScript files, you have to get sure that the cache is rebuilt (bin/otrs.Console.pl Maint::Loader::CacheCleanup).
But I'd recommend using an add-on instead of making file changes unless you want to package them.

The add-on from Znuny, which Roy linked, can do that. We also offer a free add-on "CustomCSS" (https://github.com/efflux/CustomCSS/), which also allows you to add your custom CSS code to the system (with templates for priorities).

Best regards
Emin
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/

Free and premium add-ons: German | English
Post Reply