Minor New Ticket form customisation [SOLVED]

Moderator: crythias

Locked
dbendon
Znuny newbie
Posts: 11
Joined: 26 Apr 2012, 11:24
Znuny Version: 3.1.4

Minor New Ticket form customisation [SOLVED]

Post by dbendon »

I'm pretty much setup and ready to go, I've removed a few options from customers logging tickets to keep things simple.

What I really want though is to be able to change the '*To:' form label to say "*Problem Type:" and to change the "*Text:" form label to say "* Short description of problem:"

I'm sure you get what I mean but I've searched for hours and have found nothing, I assume I'm using the wrong terms to discribe what I'm after.
Last edited by dbendon on 04 May 2012, 10:09, edited 1 time in total.
yuri0001
Znuny superhero
Posts: 630
Joined: 17 Mar 2011, 14:40
Znuny Version: 5.0.6
Real Name: Yuri Kolesnikov
Location: Russia

Re: Minor New Ticket form customisation

Post by yuri0001 »

Hi!
There two way to do it.
1. Change this labels in CustomerTicketMessage.dtl.
2. Use localization feature, where you canreplace one term for another. See development manual about it. Keywords for search - localization, translating
Best regards Yuri Kolesnikov
OTRS 5.0.14, ITSM 5.0.14
SUSE 13.2, MariaDB 10.0.22(productive)
OTRS 5.0.14, ITSM 5.0.14(test)
dbendon
Znuny newbie
Posts: 11
Joined: 26 Apr 2012, 11:24
Znuny Version: 3.1.4

Re: Minor New Ticket form customisation

Post by dbendon »

Fantastic, thanks.

For anyone else finding this with similar needs.

The file is question is located in /opt/otrs/Kernel/Output/HTML/Standard/CustomerTicketMessage.dtl

Example to change '*To:', locate the following...

Code: Select all

<label for="Dest" class="Mandatory">
    <span class="Marker">*</span>
    $Text{"To"}:
</label>
And change the $Text as needed...

Code: Select all

<label for="Dest" class="Mandatory">
    <span class="Marker">*</span>
    $Text{"Request Type"}:
</label>
yuri0001
Znuny superhero
Posts: 630
Joined: 17 Mar 2011, 14:40
Znuny Version: 5.0.6
Real Name: Yuri Kolesnikov
Location: Russia

Re: Minor New Ticket form customisation [SOLVED]

Post by yuri0001 »

Good morning!
Two remarks.
1. To avoid difficulties in the future (upgrading) - do your changes in .dtl files in custom folder, not in Standard. Create your own custom folder in Output/HTML, place there your changed ,dtl file and configure the name of this folder as new Theme
2. The second way I recommended - seems to me preferable - it is easier.
:?
Best regards Yuri Kolesnikov
OTRS 5.0.14, ITSM 5.0.14
SUSE 13.2, MariaDB 10.0.22(productive)
OTRS 5.0.14, ITSM 5.0.14(test)
Locked