Different kind of custom fields in queue preferences

English! place to talk about development, programming and coding
Post Reply
Giulio Soleni
Znuny wizard
Posts: 392
Joined: 30 Dec 2010, 14:35
Znuny Version: 6.0.x and 5.0.x
Real Name: Giulio Soleni
Company: IKS srl

Different kind of custom fields in queue preferences

Post by Giulio Soleni »

Hallo,
I recently added a couple of custom fields to the AdminQueue menu using queue preferences.
Specifically I added the following /opt/otrs/Kernel/Config/Files/QueueCustomerOrder.xml file:

Code: Select all

<?xml version="1.0" encoding="utf-8" ?>
<otrs_config version="1.0" init="Framework">
<ConfigItem Name="QueuePreferences###CustomerOrderField" Required="0" Valid="1">
        <Description Translatable="1">Defines Customer Order field for queue.</Description>
        <Group>Ticket</Group>
        <SubGroup>Frontend::Queue::Preferences</SubGroup>
        <Setting>
            <Hash>
                <Item Key="Module">Kernel::Output::HTML::QueuePreferences::Generic</Item>
                <Item Key="Label" Translatable="1">Customer Order</Item>
                <Item Key="PrefKey">OrderId</Item>
                <Item Key="Block">Input</Item>
                <Item Key="Data">$Env{"OrderId"}</Item>
                <Item Key="Prio">6101</Item>
                <Item Key="Active">1</Item>
            </Hash>
        </Setting>
    </ConfigItem>
</otrs_config>
This codes works for me (at least it seems so), however, from this howto viewtopic.php?f=60&t=19936 I see that there might be another item, like:

Code: Select all

<Item Key="Key" Translatable="1">Customer Order</Item>
But I am not sure about its actual meaning... what is it for?

Also, I see on /opt/otrs/Kernel/Output/HTML/Templates/Standard/AdminQueue.tt that there are several kinds of possible custom fields.

What's the difference between InputKey and Input types?

Thank you for any possible information
OTRS 6.0.x on CentOS 7.x with MariaDB 10.2.x database connected to an Active Directory for Agents and Customers.
ITSM and FAQ modules installed.
Post Reply