Edit: add colors to ticket states in the small overview (dtl

English! place to talk about development, programming and coding
Post Reply
LuciferSam
Znuny newbie
Posts: 17
Joined: 17 Apr 2012, 21:39
Znuny Version: 3.1.10

Edit: add colors to ticket states in the small overview (dtl

Post by LuciferSam »

Hi there.
I wish to add some php code for dynamic editing of the small overview.
But if I try to add some php code (with <?php //code ?>) but it can't recognize the code.

How can I customize this overview?
Thanks
Last edited by LuciferSam on 19 Sep 2012, 12:33, edited 1 time in total.
OTRS 3.1.10 on Debian Wheezy
PostgreSQL 9.1
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Add some PHP code to AgentTicketOverviewSmall.dtl

Post by jojo »

OTRS is developed in Perl, so it is run through the Perl parser. You can not use any Perl or PHP Code in the templates
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
LuciferSam
Znuny newbie
Posts: 17
Joined: 17 Apr 2012, 21:39
Znuny Version: 3.1.10

Re: Add some PHP code to AgentTicketOverviewSmall.dtl

Post by LuciferSam »

jojo wrote:OTRS is developed in Perl, so it is run through the Perl parser. You can not use any Perl or PHP Code in the templates
OK, understood :)

The problem I have: I wish to color in this overview the ticket states (open=green, closed = red and so on...). If I wish to do this, how can I do it? Via javascript in this dtl file or elsewhere?
OTRS 3.1.10 on Debian Wheezy
PostgreSQL 9.1
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Edit: add colors to ticket states in the small overview

Post by jojo »

Changing CSS and the Template or Javascript are both possible
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
LuciferSam
Znuny newbie
Posts: 17
Joined: 17 Apr 2012, 21:39
Znuny Version: 3.1.10

Re: Edit: add colors to ticket states in the small overview

Post by LuciferSam »

jojo wrote:Changing CSS and the Template or Javascript are both possible

Good. Where can I find some examples? I've tried with modifying the dtl file but with no success. It colors only the first row.
How can I cycle all the table?
OTRS 3.1.10 on Debian Wheezy
PostgreSQL 9.1
Post Reply