Navigation sub-menu

Hello,

I want to add a triangle above the top navigation sub menu.
In wich file do I need to add the code for the triangle?

subm.png · 173.8K · 219 views
Quote · 22 Oct 2012

_sub_header.html i think.

so much to do....
Quote · 22 Oct 2012

I don't see the right code in _sub_header.html.

Quote · 22 Oct 2012

Maybe another file?

Quote · 23 Oct 2012

Hello

You need to take a look at templates/base/scripts/BxBaseMenu.php file -> genTopItem function or similar PHP file/function in your custom template if it's overwritten there. By default you should see the following code 

<td class="top" {$sActiveStyle} {$sImgTabStyle}>
<a href="{$sLink}" {$sOnclick} {$sTarget} class="top_link"><span class="down" {$sBoldStyle}>{$sPictureRep}{$sText} t</span>
<!--[if gte IE 7]><!--></a><!--<![endif]-->
<div style="position:relative;display:block;">{$sMainSubs}</div>
</td>

It's used to generate an item in top menu.

P.S. _sub_header.html HTML template is used to put the fully generated top menu in.

Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV
Quote · 23 Oct 2012

I've found the right file but if I put the code for the triangle there I get it under every menu item. ( not only above the sub menu box, what we want )

<td class="top" {$sActiveStyle} {$sImgTabStyle}>
 <a href="{$sLink}" {$sOnclick} {$sTarget} class="top_link"><span class="down" {$sBoldStyle}>{$sPictureRep}{$sText}</span>
 <!--[if gte IE 7]><!--></a><!--<![endif]-->
 <div style="position:relative;display:block;">{$sMainSubs}</div>
</td>

Is there another line in this file only for the sub menu's?

Quote · 24 Oct 2012

Is there not currently an image there? Are we talking about the "+" sign on the menu?

 

If so you just have to change the image for it.

Quote · 24 Oct 2012

 Hello

I've found the right file but if I put the code for the triangle there I get it under every menu item. ( not only above the sub menu box, what we want )

<td class="top" {$sActiveStyle} {$sImgTabStyle}>
 <a href="{$sLink}" {$sOnclick} {$sTarget} class="top_link"><span class="down" {$sBoldStyle}>{$sPictureRep}{$sText}</span>
 <!--[if gte IE 7]><!--></a><!--<![endif]-->
 <div style="position:relative;display:block;">{$sMainSubs}</div>
</td>

Is there another line in this file only for the sub menu's?

If you mean that you want to add "Triangle" in menu items which have submenus only then you need to check $sMainSubs variable before adding. If it's empty then you don't need to add the "Triangle".

Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV
Quote · 24 Oct 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.