OTRS Navigation Link

Moderator: crythias

Locked
snigdha
Znuny newbie
Posts: 2
Joined: 07 Oct 2013, 18:58
Znuny Version: 3.2.10
Real Name: Snigdha Waghmare

OTRS Navigation Link

Post by snigdha »

Hello Everyone,

I'm trying to find the parameters for main Navigation Bar.
In AgentNavigationBar.DTL in one line all the tabs are called with its SubMenu as below.

<!-- dtl:block:ItemArea -->
<li id="nav-$QData{"NameForID"}" class="$QData{"CSS"}">
<a href="$Env{"Baselink"}$Data{"Link"}" title="$Text{"$Data{"Name"}"}$QData{"AccessKeyReference"}" accesskey="$QData{"AccessKey"}" $Data{"LinkOption"}>$Text{"$Data{"Name"}"}</a>
<!-- dtl:block:ItemAreaSub -->
<div>
<div class="ShadowTop"></div>
<div class="Shadow">
<ul id="nav-$QData{"NameForID"}-container">
<!-- dtl:block:ItemAreaSubItem -->
<li id="nav-$QData{"NameTop"}-$QData{"NameForID"}">
<a href="$Env{"Baselink"}$Data{"Link"}" title="$Text{"$Data{"Description"}"}$QData{"AccessKeyReference"}" accesskey="$QData{"AccessKey"}" $Data{"LinkOption"}>$Text{"$Data{"Name"}"}</a>
</li>
<!-- dtl:block:ItemAreaSubItem -->
</ul>
<div class="Footer"></div>
</div>
<div class="ShadowBottom"></div>
</div>
<!-- dtl:block:ItemAreaSub -->
</li>
<!-- dtl:block:ItemArea -->

I wanted to understand how and from where the parameters and the associated href links are called.

Thanks in Advance
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: OTRS Navigation Link

Post by reneeb »

See https://github.com/OTRS/otrs/blob/maste ... t.pm#L2804

It gets all the SysConfig options in "namespace" Frontend::Module and build some kind of "tree" built on the SysConfig values (Priority, Group settings, ...)
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Locked