[SOLVED] Add a Quick Search on CustomerNavigationBar

Moderator: crythias

Locked
Liwh
Znuny newbie
Posts: 9
Joined: 04 Jul 2013, 04:56
Znuny Version: 3.2.6
Real Name: Tam Ho
Company: Base Business Solutions

[SOLVED] Add a Quick Search on CustomerNavigationBar

Post by Liwh »

Dear team,

I have search around and find this thread viewtopic.php?f=62&t=16168&p=62345&hili ... ion#p62345. But as same as knmatch, I cannot show the link I want on Customer Navigation Link.

1. I tried to delete CustomerNavigationBar.dtl, the Navigation Bar is dis-appeared. Means correct file.
2. I tried to change dtl:block:Preferences of the file, example change the Preferences text to my name. It works also.
3. But when I tried to add a new <li> into the code, even inside <ul> of Block Item or <ul class="Individual">, it does not take any effect at all.

Could anyone help me on this? What I want is just create a link, directly on NavigationBar, which will call CustomerFAQSearch. I attach here the CustomerNavigationBar.dtl for your review.
CustomerNavigationBar.txt
Thanks in advance.
You do not have the required permissions to view the files attached to this post.
Liwh
Znuny newbie
Posts: 9
Joined: 04 Jul 2013, 04:56
Znuny Version: 3.2.6
Real Name: Tam Ho
Company: Base Business Solutions

Re: [SOLVED] Add a Quick Search on CustomerNavigationBar

Post by Liwh »

In order for a link to appear on the Navigation Bar, I just put the <li> within the existed <!-- dtl:block:xxx>. Not put in a new one as my code. It works for me as below:

Code: Select all

<ul class="Individual">
<!-- dtl:block:Preferences -->
	<li class="$QData{"Class"}"><a href="$Env{"Baselink"}Action=CustomerFAQSearch" title="This is quick search">Quick Search</a></li>
	<li class="$QData{"Class"}"><a href="$Env{"Baselink"}Action=CustomerPreferences" title="$Text{"Edit personal preferences"}">$Text{"Preferences"}</a></li>
<!-- dtl:block:Preferences -->
<!-- dtl:block:Logout -->
	<li class="Last"><a href="$Env{"Baselink"}Action=Logout">$Text{"Logout %s", "$QEnv{"UserFirstname"} $QEnv{"UserLastname"}"}</a></li>
<!-- dtl:block:Logout -->
</ul>
Locked