I am trying to add a custom section on the navbar that would, when clicked display rss feeds generated in php.
I would assume that this would be done by creating a new module. I am not sure if I can do what I whant to do by editing the current navbar. I reviewed the dev manual and tried to use the example for creating a new customer module and registering it in Config.pm
I created my NavBarDownloads.pm.
Code: Select all
package Kernel::Output::HTML::NavBarDownloads;
use strict;
use warnings;
# --
sub new {
my ( $Type, %Param ) = @_;
[...]
return $Self;
}
# --
sub Run {
my ( $Self, %Param ) = @_;
my %Return = ();
$Return{'0999989'} = {
Block => 'ItemPersonal',
Description => 'Download Center',
Name => 'Download Center',
Image => '',
Link => 'Action=AgentMailbox&Subaction=New',
AccessKey => 'j',
};
return %Return;
}
# --
1;
And registered it in .../Kernal/Config.pm
Code: Select all
# Customer Downloads
$Self->{'CustomerFrontend::NavBarModule'}->{'99-ABC'} = {
Module => 'Kernel::Output::HTML::NavBarDownloads',
};
Backend ERROR: OTRS-CGI-10 Perl: 5.8.6 OS: darwin Time: Thu Jul 21 10:46:48 2011
Message: syntax error at ../..//Kernel/Output/HTML/NavBarDownloads.pm line 20, near "[..."
Global symbol "$Self" requires explicit package name at ../..//Kernel/Output/HTML/NavBarDownloads.pm line 21.
In all the other .pm I do not see how or were an explicit package name is defined.
I would greatly appreciate it if someone could help me out on this or at least point me in the direction of understanding better how to do what I want here.
Thanks in advance and apologize in advance if this is too newbish...