Hey,
Just
to let you know that I have succesfully worked around the problem by editing the
CustomerNavigationBar.dtl file in the folder for the theme I
created.
Here
is the code. Some of it might be wrong but it works
perfectly:
<!-- start Notifications -->
$Data{"Notification"}
<!--
end Notifications -->
<!-- start NavigationBar -->
<table
border="0" width="100%" cellspacing="0" cellpadding="3">
<tr>
<td valign="top" align="left" width="70%"
class="nav">
<table border="0"
cellspacing="2" cellpadding="2">
<tr>
<td
valign="top" align="center"
class="nav">
<div title="Read the User Manual"><a href="http://LinkToManual"
onmouseover="window.status='$JSText{"User Manual"}'; return true;"
onmouseout="window.status='';" class="navitem"><img border="0" src="http://OTRSserver/otrs-web/images/Standard/manual.png"
alt="User Manual"}"><br>User
Manual</a></div>
</td>
<!-- dtl:block:Item
-->
<td
valign="top" align="center"
class="nav">
<div title="$Text{"$QData{"Description"}"}"><a
href="$Env{"Baselink"}$Data{"Link"}" accesskey="$QData{"AccessKey"}"
onmouseover="window.status='$JSText{"$QData{"Name"}"}'; return true;"
onmouseout="window.status='';" class="navitem"><img border="0"
src="$Env{"Images"}$QData{"Image"}"
alt="$Text{"$QData{"Name"}"}"><br>$Text{"$QData{"Name"}"}</a></div>
</td>
<!-- dtl:block:Item
-->
</tr>
</table>
</td>
<td
valign="top" align="right" width="30%"
class="nav">
$Text{"Welcome %s",
"$Env{"UserFirstname"} $Env{"UserLastname"}
($Data{"UserLoginTop"})"}<br>
$Env{"Time"}
</td>
</tr>
</table>
<!-- end NavigationBar
-->
Unfortunately it has forced me to put the button to the manual at the
front of the navbar because if I try to put it anywhere else then strange things
seem to happen, I'm probably getting the code wrong but i'm happy that I managed
to get this far with it :)
Cheers
Leigh
From: otrs-bounces@otrs.org
[mailto:otrs-bounces@otrs.org] On Behalf Of Leigh Reed
Sent: 25
April 2008 14:58
To: otrs@otrs.org
Subject: [otrs] Adding a
link to the customer navigation bar
Hi
everyone,
I have managed to
successfully edit the customer navigation bar by editing the file ZZZAAuto.pm
located in "otrs\Kernel\Config\Files", so that the companytickets link has been
removed and I have moved the logout button to the right instead of it being on
the left. I have also added a new button that links to a help manual that I have
written for all of our users. However I am having a major problem getting it to
link to this new webpage.
My understanding is
that when a user clicks a button on the navigation bar it links to a module in
"otrs\Kernel\Modules" via the line: 'Link' => 'Action=CustomerPreferences'.
So in this example it loads the CustomerPreferences.pm file that does lots
of advanced things that I have no clue about. Somewhere in this file there is a
line or lines that tells it which template to use for the layout, in this
case I think it is the CustomerPreferencesForm.dtl file located in
"otrs\Kernel\Output\HTML\Company" (I have a customer interface called Company
other wise replace Company with Standard).
So, I have tried to
create a .pm file called Manual.pm and the 'User Manual' button in the nav bar
links to this file via the line 'Link' => 'Action=Manual'. However I am stuck
because I have no idea how to get this .pm file to link the index.html page of
the manual as this is a bit too advanced for me. I can't seem to test it
either because when I click the User Manual button I get the error
message: "Error: Module Kernel::Modules::Manual not registered in
Kernel/Config.pm!".
How do I register
this module in the config.pm file?
Secondly, what do I
need to put in the Manual.pm file so that it links or redirects to the
index.html page of the user manual? or can I use the line in the ZZZAAuto.pm
file 'Link' => ' ' to link to it somehow, maybe by using the direct
link? The problem with this is that when i click the link it sends me to http://wbhapp/otrs/Customer.pl?http://wbhapp/SupportDesk/index.html.
Can the baselink be ignored at all?
Any help would be
really appreciated
Thank
you.