Regarding this howto:
viewtopic.php?t=19936
Is this still a valid processes for Znuny v7.x?
I have tried dropping the file in the specified folder and refreshed sysconfig but I do not see the new parameter there or in the agent prefs.
there is a sub directory called XML in that path with other .xml files in it. Is that now the correct location?
Also I notice the other xml files in that location have an otrs_config version="2.0" attribute rather than v 1.0 as in this thread.
I have tried tweaking both the above but I still do not see the new field.
[SOLVED] Adding additional agent field in v7
Moderator: crythias
[SOLVED] Adding additional agent field in v7
Last edited by gob on 01 Aug 2023, 18:46, edited 1 time in total.
-
- Administrator
- Posts: 4002
- Joined: 18 Dec 2007, 12:23
- Znuny Version: Znuny and Znuny LTS
- Real Name: Roy Kaldung
- Company: Znuny
- Contact:
Re: Adding additional agent field in v7
Hi,
The XML definition changed with version 6. Here an example for 6.5/7.0:
- Roy
The XML definition changed with version 6. Here an example for 6.5/7.0:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<otrs_config version="2.0" init="Config">
<Setting Name="PreferencesGroups###NameItHere" Required="0" Valid="1">
<Description Translatable="1">Make it understandable.</Description>
<Navigation>Frontend::Agent::View::Preferences</Navigation>
<Value>
<Hash>
<Item Key="Module">Kernel::Output::HTML::Preferences::Generic</Item>
<Item Key="PreferenceGroup">UserProfile</Item>
<Item Key="Label" Translatable="1">Label it</Item>
<Item Key="Key" Translatable="1">UserChooseYourKey</Item>
<Item Key="Block">Input</Item>
<Item Key="PrefKey"> UserChooseYourKey </Item>
<Item Key="Data">[% Env("UserChooseYourKey") %]</Item>
<Item Key="Prio">0600</Item>
<Item Key="Active">1</Item>
</Hash>
</Value>
</Setting>
</otrs_config>
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Re: Adding additional agent field in v7
Thanks for your reply @Roy
I'm still struggling to get this showing.
I have tried with your exact text and also substituting the details.
I have tried in the suggested location and also the XML folder, changing the Prio value and reloading the System Configuration each time.
I'm still struggling to get this showing.
I have tried with your exact text and also substituting the details.
I have tried in the suggested location and also the XML folder, changing the Prio value and reloading the System Configuration each time.
-
- Administrator
- Posts: 4002
- Joined: 18 Dec 2007, 12:23
- Znuny Version: Znuny and Znuny LTS
- Real Name: Roy Kaldung
- Company: Znuny
- Contact:
Re: Adding additional agent field in v7
Hi,
Put the content in a file with .xml as an extension, and place the file in the XML folder.
Run bin/otrs.Console.pl Maint::Config::Rebuild with the Znuny user
The Prio ist the order of the preferences, nothing else.
- Roy
Put the content in a file with .xml as an extension, and place the file in the XML folder.
Run bin/otrs.Console.pl Maint::Config::Rebuild with the Znuny user
The Prio ist the order of the preferences, nothing else.
- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Re: Adding additional agent field in v7
Ah!!!
The new field appears in the Agent Personal Preferences and not where I was looking in the Agent Management screen.
Thanks for your help again @roy
The new field appears in the Agent Personal Preferences and not where I was looking in the Agent Management screen.
Thanks for your help again @roy