To define signatures with agent specific details like role title or mobile number, an OTRS administrator can just add a few lines of SysConfig to provide a new agent preference that can be filled with values by the particular agent or the administrator.
The easiest way is to setup a new own configuration in Kernel/Config/Files/
For my example I will use the filename MyConfig.xml
The content of this file is simple:
<?xml version="1.0" encoding="utf-8" ?> <otrs_config version="1.0" init="Framework"> <ConfigItem Name="PreferencesGroups###PersonalPhoneNumber" Required="0" Valid="0"> <Description Translatable="1">Defines the config parameters of this item, to be shown in the preferences view.</Description> <Group>Framework</Group> <SubGroup>Frontend::Agent::Preferences</SubGroup> <Setting> <Hash> <Item Key="Module">Kernel::Output::HTML::PreferencesGeneric</Item> <Item Key="Column">Other Settings</Item> <Item Key="Label" Translatable="1">Example for agent phone number</Item> <Item Key="Key" Translatable="1">Example for agent phone number</Item> <Item Key="Block">Input</Item> <Item Key="Data">$Env{"UserPhoneNumber"}</Item> <Item Key="PrefKey">UserPhoneNumber</Item> <Item Key="Prio">7000</Item> <Item Key="Active">1</Item> </Hash> </Setting> </ConfigItem> </otrs_config>
Rebuilding the SysConfig (just open the SysConfig using the admin area) generates a new SysConfig entry in Framework -> Frontend::Agent::Preferences calles PersonalPhoneNumber.
This field needs to be activated and adds a new preference item to the agent preferences page.
The value will be stored in the table user_preferences and is available in signatures with the common OTRS tags like .
Enjoy!
Cheers, Nils