Skip to Navigation

Chapter 4. Config Mechanism

Default Config

There are different default config files. The main one, which comes with the framework, is:

Kernel/Config/Defaults.pm

This file should be left untouched as it is automatically updated on framework updates. There is also a sub directory where you can store the default config files of your own modules. These files are used automatically.

The directory is located under:

$OTRS_HOME/Kernel/Config/Files/*.pm

And could look as follows:

Kernel/config/Files/Calendar.pm

# module reg and nav bar
$Self->{'Frontend::Module'}->{'AgentCalendar'} = {
    Description => 'Calendar',
    NavBarName => 'Ticket',
    NavBar => [
        {
            Description => 'Calendar',
            Name => 'Calendar',
            Image => 'calendar.png',
            Link => 'Action=AgentCalendar',
            NavBar => 'Ticket',
            Prio => 5000,
            AccessKey => 'c',
        },
    ],
};

# show online customers
$Self->{'Frontend::NotifyModule'}->{'80-ShowCalendarEvents'} = {
    Module => 'Kernel::Output::HTML::NotificationCalendar',
};