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
Edit: add colors to ticket states in the small overview (dtl
-
- 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
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
PostgreSQL 9.1
Re: Add some PHP code to AgentTicketOverviewSmall.dtl
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
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
-
- Znuny newbie
- Posts: 17
- Joined: 17 Apr 2012, 21:39
- Znuny Version: 3.1.10
Re: Add some PHP code to AgentTicketOverviewSmall.dtl
OK, understoodjojo 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
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
PostgreSQL 9.1
Re: Edit: add colors to ticket states in the small overview
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
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
-
- 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
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
PostgreSQL 9.1