TicketFreeText customization

Moderator: crythias

Locked
arcadas
Znuny newbie
Posts: 7
Joined: 14 Jul 2011, 10:59
Znuny Version: 3.0.8
Real Name: Peter Perger
Location: Hungary

TicketFreeText customization

Post by arcadas »

Hi All! I have a problem with AgentTicketZoom.dtl template. I try use the <!-- dtl:block:TicketFreeText1 --> block, but it does not work. I need it, because I would not like show the other TicketFreeText fields, just one from all. The following code don't display anything.

Code: Select all

<!-- dtl:block:TicketFreeText1 -->
Ticket Free Text 1 works! 
<!-- dtl:block:TicketFreeText1 -->
Have you any solution for this problem?

Thanks!
OTRS 3.0.8, RedHat Linux, MySQL database
MichaelR
Znuny expert
Posts: 250
Joined: 12 Oct 2010, 01:35
Znuny Version: 3.0.9
Company: LRS Health

Re: TicketFreeText customization

Post by MichaelR »

That is not going to work lol.

What are you exactly trying to do?

It will only show TicketFreeText1 if it has been set.
OTRS: 3.0.9 & ITSM 3.0.4 - OS: Windows 7 - DB: MySQL - Heaps of random/useful hacks :)
[Major Code Changes]
ArticleFreeTime1-3
Ability to search ArticleFreeText
arcadas
Znuny newbie
Posts: 7
Joined: 14 Jul 2011, 10:59
Znuny Version: 3.0.8
Real Name: Peter Perger
Location: Hungary

Re: TicketFreeText customization

Post by arcadas »

I would like only show TicketFreeText1 an new box. It has been set (I see in Ticket Information box). I would like display the $QData{"TicketFreeText"} variable, but nothing displayed in the <!-- dtl:block:TicketFreeText1 --> block. I tried displaying just some text in this block, but the text did not displayed. I don't see why not works this block, if I have TicketFreeText1.

Now, I tried add a new block, but this does not work:

AgentTicketZoom.pm

Code: Select all

$Self->{LayoutObject}->Block(
    Name => 'MyTicketFreeText',
    Data => { MyTicketFreeText => '12345' },
);
AgentTicketZoom.dtl

Code: Select all

<!-- dtl:block:MyTicketFreeText -->
MyTicketFreeText: $QData{"MyTicketFreeText"}
<!-- dtl:block:MyTicketFreeText -->
Am I doing something wrong?
OTRS 3.0.8, RedHat Linux, MySQL database
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: TicketFreeText customization

Post by crythias »

You should enable it in Sysconfig where you want to see it.
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
arcadas
Znuny newbie
Posts: 7
Joined: 14 Jul 2011, 10:59
Znuny Version: 3.0.8
Real Name: Peter Perger
Location: Hungary

Re: TicketFreeText customization

Post by arcadas »

I searched in Sysconfig for "AgentTicketZoom", where I would like use it. It find the following three results:

Frontend::Agent::ModuleRegistration
Frontend::Agent::Ticket::MenuModulePre
Frontend::Agent::Ticket::ViewZoom

But I did not see where can I enable a dtl block. I enabled the TicketFreeText1 in Ticket::Frontend::AgentTicketSearch###TicketFreeText, but it did not help.
I red that how can I create and use a block in the manual, but it did not work for me. :(

This works:

Code: Select all

<!-- dtl:block:TicketFreeText -->
$QData{"TicketFreeText"}
<!-- dtl:block:TicketFreeText -->
But this does not work:

Code: Select all

<!-- dtl:block:TicketFreeText1 -->
$QData{"TicketFreeText1"}
<!-- dtl:block:TicketFreeText1 -->
OTRS 3.0.8, RedHat Linux, MySQL database
Locked