This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » Suggestions » Bug in flat_left template ?

Bug in flat_left template ?

Bug in flat_left template ?

Friday 06 June 2008 12:23:00 pm

Hi, I realized that the header link in the left navigation pointed to the root of the site when a user was viewing the top lvl of that menu. (im using EzPublish 4.0)

I had to fix it using this in an overide:

<h4><a href={if eq( $ui_context, 'browse' )}{if $module_result.path[$pagerootdepth|inc]} {concat("content/browse/", $module_result.path[$pagerootdepth].url)|ezurl}  {else}{/if}{else}{if $module_result.path[$pagerootdepth|inc]} {$module_result.path[$pagerootdepth].url_alias|ezurl} {else}{/if}{/if}>{$module_result.path[$pagerootdepth].text}</a></h4>

the original code:

<h4><a href={if eq( $ui_context, 'browse' )}{concat("content/browse/", $module_result.path[$pagerootdepth].url)|ezurl}  {else} {$module_result.path[$pagerootdepth].url_alias|ezurl} {/if}>{$module_result.path[$pagerootdepth].text}</a></h4>

No reply yet!


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from