Hi,
i would like to customize the OTRS Header and add for example some clocks (utc, US, Germany, etc), so my agents dont have to do time conversions in their heads. Do you guys think this can be realized easily or does it afford a lot of customizations?
(i know i can add stuff to the dashboard, but i want it to be visible everywhere - the OTRS header consists of a lot of unused space...)
Thanks in advance!
Customize Header - add worldclocks
Moderator: crythias
Customize Header - add worldclocks
OTRS 5.0.24 (with ITSM Modules) and Znuny 6.4.4 in staging
Re: Customize Header - add worldclocks
Hi,
You should create a theme and then copy the header template file to your theme folder and edit it. I'm guessing it's either Header.tt or HeaderSmall.tt.
For the clocks themselves, you could potentially build some sort of otrs module for that to calculate them, but I'd personally just throw some javascript code in there. Something like this or this or this.
You should create a theme and then copy the header template file to your theme folder and edit it. I'm guessing it's either Header.tt or HeaderSmall.tt.
For the clocks themselves, you could potentially build some sort of otrs module for that to calculate them, but I'd personally just throw some javascript code in there. Something like this or this or this.
Re: Customize Header - add worldclocks
Thanks!
I took your advice and just implemented an iframe, so now it looks like I added the code to header.tt here:
the only thing i'm worried about is safety (not sure if i can trust this iframe thingy), what do you think?
I took your advice and just implemented an iframe, so now it looks like I added the code to header.tt here:
the only thing i'm worried about is safety (not sure if i can trust this iframe thingy), what do you think?
You do not have the required permissions to view the files attached to this post.
OTRS 5.0.24 (with ITSM Modules) and Znuny 6.4.4 in staging
-
- Znuny superhero
- Posts: 889
- Joined: 15 Dec 2016, 15:13
- Znuny Version: All
- Real Name: Emin
- Company: Efflux GmbH
- Contact:
Re: Customize Header - add worldclocks
Hello,
including iframes from an unkown source is definitely a possible security threat.
This feature can be replaced with some self-written JavaScript using the Moment.js library.
Moment.js is already included in the OTRS source code but only gets loaded by the dashboard module, so you'd have to load it for all modules.
It's up to you which way you choose.
Best regards
Emin
including iframes from an unkown source is definitely a possible security threat.
This feature can be replaced with some self-written JavaScript using the Moment.js library.
Moment.js is already included in the OTRS source code but only gets loaded by the dashboard module, so you'd have to load it for all modules.
It's up to you which way you choose.
Best regards
Emin
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/
Free and premium add-ons: German | English
Free and premium add-ons: German | English