Estimados,
Un cordial saludo a todos, y porfavor les solicito si pueden ayudarme en lo siguiente:
Tengo instalado OTRS 3.3 bajo CenteOS 6.5. Todo bien hasta el momento pero me solicitaron un requerimientos en particula, por lo cual necesito editar o crear un nueva etiqueta <OTRS_CUSTOMER_Body>. Mi dificultad es saber la ruta donde se crea esta etiqueta para así como ver como funciona y ser si puedo editarlo para mi necesidad.
Gracias
Ayuda para crear nueva etiqueta <OTRS_CUSTOMER_Body>
-
- Znuny superhero
- Posts: 682
- Joined: 29 May 2012, 22:47
- Znuny Version: 6.0.24
- Real Name: Klaus Salazar
- Location: Perú
Re: Ayuda para crear nueva etiqueta <OTRS_CUSTOMER_Body>
Saludos, espero te pueda servir mi recomendación, en mi caso lo hice para agregar una tag para la firma y fue mas o menos así, veras primero creas un archivo MyConfig.xml y lo ubicas en /opt/otrs/Kernel/Config/Files/MyConfig.xml y prueba usando este sentencia:
<?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">Número telefónico del agente</Item>
<Item Key="Key" Translatable="1">Número telefónico del agente</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>
Y luego vas en el SysConfig y te ubicas en Framework -> Frontend::Agent::Preferences, en mi caso yo intentaba agregar un tag para telefono como puedes ver en la siguiente imagen
Espero te pueda ayudar, cualquier consulta me avisas.
<?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">Número telefónico del agente</Item>
<Item Key="Key" Translatable="1">Número telefónico del agente</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>
Y luego vas en el SysConfig y te ubicas en Framework -> Frontend::Agent::Preferences, en mi caso yo intentaba agregar un tag para telefono como puedes ver en la siguiente imagen
Espero te pueda ayudar, cualquier consulta me avisas.
You do not have the required permissions to view the files attached to this post.
-
- Znuny newbie
- Posts: 30
- Joined: 07 Oct 2016, 18:44
- Znuny Version: 5.0.14
- Real Name: JMS
- Company: CVJ TyS COL
Re: Ayuda para crear nueva etiqueta <OTRS_CUSTOMER_Body>
Hola klausneil buena tarde,
Queria saber en que parte o en que vista se ve reflajado el cambio o el nuevo campo que indicas con el codigo en este comentario, pues lo busque en la opcion donde uno crea una "firma" pero no veo nada referente.
Quedo atento, muchas gracias.
___________________________________________________________________________________________________________________________
Queria saber en que parte o en que vista se ve reflajado el cambio o el nuevo campo que indicas con el codigo en este comentario, pues lo busque en la opcion donde uno crea una "firma" pero no veo nada referente.
Quedo atento, muchas gracias.
___________________________________________________________________________________________________________________________
klausneil wrote:Saludos, espero te pueda servir mi recomendación, en mi caso lo hice para agregar una tag para la firma y fue mas o menos así, veras primero creas un archivo MyConfig.xml y lo ubicas en /opt/otrs/Kernel/Config/Files/MyConfig.xml y prueba usando este sentencia:
<?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">Número telefónico del agente</Item>
<Item Key="Key" Translatable="1">Número telefónico del agente</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>
Y luego vas en el SysConfig y te ubicas en Framework -> Frontend::Agent::Preferences, en mi caso yo intentaba agregar un tag para telefono como puedes ver en la siguiente imagen
Espero te pueda ayudar, cualquier consulta me avisas.