New Service Preferences field

Moderator: crythias

Locked
voiprodrigo
Znuny newbie
Posts: 62
Joined: 03 Dec 2014, 18:49
Znuny Version: OTRS 4
Location: Portugal
Contact:

New Service Preferences field

Post by voiprodrigo »

Hi,

I added a new service preference field to Config.pm, like this:

Code: Select all

$Self->{'ServicePreferences'}->{'Comment3'} =  {
  'Block' => 'Text',
  'Desc' => 'Define the associated project name',
  'Label' => 'Associated Project Name',
  'Module' => 'Kernel::Output::HTML::ServicePreferencesGeneric',
  'PrefKey' => 'Comment3'
};
But this doesn't seem to be enough. I searched about this, and only found references about adding to Config.pm.

How to enable this fully? i.e. have it show in sysconfig to enable and then use it on the services administration?

Thanks in advance.
Linux (Ubuntu 14.04.1 LTS) | MySQL 5.5.40 | OTRS 4.0.7
voiprodrigo
Znuny newbie
Posts: 62
Joined: 03 Dec 2014, 18:49
Znuny Version: OTRS 4
Location: Portugal
Contact:

Re: New Service Preferences field

Post by voiprodrigo »

Btw, I did run DeleteCache and restarted Apache.
Linux (Ubuntu 14.04.1 LTS) | MySQL 5.5.40 | OTRS 4.0.7
voiprodrigo
Znuny newbie
Posts: 62
Joined: 03 Dec 2014, 18:49
Znuny Version: OTRS 4
Location: Portugal
Contact:

Re: New Service Preferences field

Post by voiprodrigo »

Ok, enabled the config option by creating a new XML on Config/Files with config option adapted from ServicePreferences Comment2, and was able to add and save on the new field.

Challenge now is changing this to a simple Text block instead of TextArea.
Linux (Ubuntu 14.04.1 LTS) | MySQL 5.5.40 | OTRS 4.0.7
voiprodrigo
Znuny newbie
Posts: 62
Joined: 03 Dec 2014, 18:49
Znuny Version: OTRS 4
Location: Portugal
Contact:

Re: [SOLVED] New Service Preferences field

Post by voiprodrigo »

And done, by switching Block to Input. The block in Config.pm is not required, only the XML block.

I'll leave this here just for others reference ;)

Rgds.
Linux (Ubuntu 14.04.1 LTS) | MySQL 5.5.40 | OTRS 4.0.7
polnicky
Znuny newbie
Posts: 1
Joined: 29 May 2014, 13:33
Znuny Version: 4.0.x
Real Name: Jan
Company: Extend IT, s.r.o.
Contact:

how to define Date type

Post by polnicky »

Any idea how to define Date type please? Following doesn't work

Code: Select all

 'Block' => 'Date' 
OTRS user from v2.x, OTRS service provider (integration/customization/implementation) for the latest versions :)
Locked