Hello,
I'm looking into changing where our DynamicFields are showing.
There are three fields in particular that I want on the top of the page for new tickets. Now I find some resources only pointing me to .dtl files.
I cannot find these since I'm on version 4, and I found they changed to .tt files?
I cannot find these either. Can anyone point me to where they should be? And any advice on how to change the order of fields is also appreciated.
Regards,
Matt
[SOLVED] Position of dynamic fields
Moderator: crythias
-
- Znuny newbie
- Posts: 43
- Joined: 02 Sep 2014, 15:04
- Znuny Version: 4.0.7
- Real Name: Mattias
- Company: BusSaP
- Location: Belgium
[SOLVED] Position of dynamic fields
Last edited by mavrie on 21 Apr 2015, 10:07, edited 1 time in total.
Otrs 4.0.7 on CentOS 6.5
MySQL Database
MySQL Database
Re: Position of dynamic fields
From https://github.com/OTRS/otrs/blob/rel-4 ... etPhone.tt
With the code below all the dynamic fields are shown as a block, one below the other
If you want to place different dynamic fields at different places on your ticket screen:
So in your case, you might want to place dynamic fields A, B and C at the top and dynamic fields D, E and F (for example) at the bottom
This link might be useful. It describes "translation" from old .dtl to .tt, so you could also make sense of resources pointing to .dtl files.
http://otrs.github.io/doc/manual/develo ... ate-engine
With the code below all the dynamic fields are shown as a block, one below the other
Code: Select all
[% RenderBlockStart("DynamicField") %]
<div class="Row Row_DynamicField_[% Data.Name | html %]">
[% Data.Label %]
<div class="Field">
[% Data.Field %]
</div>
<div class="Clear"></div>
</div>
[% RenderBlockEnd("DynamicField") %]
Code: Select all
# example of how to use fixed dynamic field blocks for customizations
# Note: Field1 and Field2 are the names of the fields and had to be replaced with the actual
# field names
#[% RenderBlockStart("DynamicField_Field1") %]
# <div class="Row Row_DynamicField_[% Data.Name | html %]">
# [% Data.Label %]
# <div class="Field">
# [% Data.Field %]
# </div>
# <div class="Clear"></div>
# </div>
#[% RenderBlockEnd("DynamicField_Field1") %]
#[% RenderBlockStart("DynamicField_Field2") %]
# <div class="Row Row_DynamicField_[% Data.Name | html %]">
# [% Data.Label %]
# <div class="Field">
# [% Data.Field %]
# </div>
# <div class="Clear"></div>
# </div>
#[% RenderBlockEnd("DynamicField_Field2") %]
This link might be useful. It describes "translation" from old .dtl to .tt, so you could also make sense of resources pointing to .dtl files.
http://otrs.github.io/doc/manual/develo ... ate-engine
OTRS 3.3.x (private/testing) on Windows Server 2008 with MSSQL database.
OTRS 3.3.x (private/testing) on CentOS with MySQL database and apache
OTRS 3.3.x (private/testing) on CentOS with MySQL database and apache
-
- Znuny newbie
- Posts: 43
- Joined: 02 Sep 2014, 15:04
- Znuny Version: 4.0.7
- Real Name: Mattias
- Company: BusSaP
- Location: Belgium
Re: Position of dynamic fields
Aph,
Thank you. Exactly what I was looking for
Regards
Thank you. Exactly what I was looking for

Regards
Otrs 4.0.7 on CentOS 6.5
MySQL Database
MySQL Database