- HTML Admin-Manual
- PDF Admin-Manual
- HTML ITSM-Manual
- PDF ITSM-Manual
- HTML Developer-Manual
- PDF Developer-Manual
- HTML Developer-API
7.3. Navigation Module
In this module layer you can create dynamic navigation bar items with dynamic content (Name and Description). Navigation Module are located under Kernel/Output/HTML/NavBar*.pm.
Format:
# --
# Kernel/Output/HTML/NavBarABC.pm - shows a navbar item dynamicaly
# Copyright (C) 2005 Hans Mueller mail@example.com
# --
# $Id: module-format.xml,v 1.17 2006/04/06 19:33:07 martin Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (GPL). If you
# did not receive this file, see http://www.gnu.org/licenses/gpl.txt.
# --
package Kernel::Output::HTML::NavBarABC;
use strict;
# --
sub new {
my $Type = shift;
my %Param = @_;
[...]
return $Self;
}
# --
sub Run {
my $Self = shift;
my %Param = @_;
my %Return = ();
$Return{'0999989'} = {
Block => 'ItemPersonal',
Description => 'Some Desctipton',
Name => 'Text',
Image => 'new-message.png',
Link => 'Action=AgentMailbox&Subaction=New',
AccessKey => 'j',
};
return %Return;
}
# --
1;
To use this module add the following code to the Kernel/Config.pm and restart your webserver (if you use mod_perl).
[Kernel/Config.pm]
# agent interface notification module
$Self->{'Frontend::NavBarModule'}->{'99-ABC'} = {
Module => 'Kernel::Output::HTML::NavBarABC',
};

