[dev] Not-so-flexible ticketview templates

Joaquim Homrighausen joho at webbplatsen.se
Fri Oct 1 14:41:08 CEST 2004


Quoting Martin Edenhofer <me at otrs.de>:

Hi there!

I don't know where my problem is either .. this DTL doesn't seem to get parsed
properly (i.e. it displays part of the DTL code on the page):

<dtl set $Data{"xxHeaders"} = "">

<dtl if ($Env{"DidTicketHeaders"} ne "1") { set $Data{"xxHeaders"}="<table
border=0 cellspacing=0 cellpadding=0
bgcolor=red><tr><td>*</td><td>ID</td><td>Created</td><td>Age</td><td>Queue</td></tr></table>";}>

<dtl if ($Data{"xxHeaders"} ne "") {set $Env{"DidTicketHeaders"}="1"; }>

$Data{"xxHeaders"}

Also, since TicketViewLite is used once per ticket (if I'm not mistaken), I
don't know where I'd modify a DTL file to get a *header* for all the 
tickets. I
don't want the header displayed for each ticket.


-joho



More information about the dev mailing list