Martin Edenhofer
Wed, 13 Feb 2008 07:15:09 -0800
Hi, JFI, there is a new feature in CVS which will be availabe in OTRS 2.3.x. QueuePreferences ================In the past we got may requests that many users want to store more attributs for queues (even for customizations to add features based on some queue attributes).
So in the past if you wanted to do this you needed to patch 3 files: o Kernel/System/Queue.pm o Kernel/Modules/AdminQueue.pm o Kernel/Output/HTML/Standard/AdminQueueForm.dtlSo this is not really maintainable from on version to the next version and you need to add these 3 files always to your .opm file (if you create one).
-=> Time for an module layer to save resources for customizations. :)So it's very easy to have new queue attributes by only adding a config option like this (1:1 the same as for agent or customer preferences). Yes, you also can change this queue attributes in the admin area under "Queue Management":
$Self->{QueuePreferences}->{EscalationNotifyLevel} = {
Module => 'Kernel::Output::HTML::QueuePreferencesGeneric',
Label => 'EscalationNotifyLevel',
Desc => 'Define the level of escalation notify.',
Block => 'Option',
Data => {
'' => '-',
10 => '10%',
20 => '20%',
30 => '30%',
40 => '40%',
50 => '50%',
60 => '60%',
70 => '70%',
80 => '80%',
90 => '90%',
},
PrefKey => 'EscalationNotify',
};
Of course you also can create your own
Kernel::Output::HTML::QueuePreferencesXXX module for own data lookups
or what ever.
PS1: Yes, you also can use these type of queue attributs in any templates by using <OTRS_QUEUE_EscalationNotify> if EscalationNotify is the PrefKey.
PS2: Yes, you also get this queue attributes back from core modules Kernel::System::Queue->QueueGet(). It's just the same as for agents and customers.
-=> Developer Manual will be updated soon as possible.
Greetings,
-Martin
--
((otrs)) :: OTRS AG :: Europaring 4 :: D - 94315 Straubing
Fon: +49 (0) 9421 56818 0 :: Fax: +49 (0) 9421 56818 18
http://www.otrs.com/ :: Communication with success!
Address of record: Bad Homburg
Local Court: Bad Homburg, HRB 10751
Tax number: 003/240/97505
Chairman: Burchard Steinbild
Chief Executive Officer: André Mindermann
_______________________________________________
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev