Where's $Quote defined?

English! place to talk about development, programming and coding
Post Reply
shostakovich
Znuny advanced
Posts: 146
Joined: 11 Apr 2011, 08:11
Znuny Version: 3.2.5

Where's $Quote defined?

Post by shostakovich »

Hi,

I'm pretty unclear about the mechanism behind how the transition of a tickets state to the output works. The reckon the dtl files are parsed at some point, but it remains unclear.

OK, e.g. in AgentTicketZoom.dtl we have:

Code: Select all

<p class="Value" title="$Quote{"$Text{"$Data{"State"}"}"}">$Quote{"$Text{"$Data{"State"}"}","18"}</p>
I want to have conditional formatting, i.e. if the state type is closed, I want to have the output bold. So my first problem is, I cannot see where $Quote() is built...
Do you have some hint? How is the dtl->html transition working? I've seen $(Q|LQ)?Data are built in Layout.pm and I used it for adding an additional "function" to create shortened Queuenames... but here... hmmm.

TIA
Michael
shostakovich
Znuny advanced
Posts: 146
Joined: 11 Apr 2011, 08:11
Znuny Version: 3.2.5

Re: Where's $Quote defined?

Post by shostakovich »

OK, the OTRS Developer Book tells something about the templating mechanism. But still, what's the correct way to extend the functionality with a custom $MyQuote?

TIA
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Where's $Quote defined?

Post by crythias »

I'd consider something like class="bold$QData{"State"}" with a css style that applies to "boldclosed-successful" and "boldclosed-unsuccessful".
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Post Reply