Forums / Suggestions / Bug in flat_left template ?

Bug in flat_left template ?

Author Message

Benoit Schumacher

Friday 06 June 2008 3:23:00 am

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>

eZ debug

Timing: Jan 18 2025 01:12:21
Script start
Timing: Jan 18 2025 01:12:21
Module start 'content'
Timing: Jan 18 2025 01:12:22
Module end 'content'
Timing: Jan 18 2025 01:12:22
Script end

Main resources:

Total runtime0.5880 sec
Peak memory usage4,096.0000 KB
Database Queries47

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 587.7109180.8359
Module start 'content' 0.00710.5671 768.5469406.5156
Module end 'content' 0.57420.0137 1,175.062538.1094
Script end 0.5879  1,213.1719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.5746140.0002
Check MTime0.00140.2417140.0001
Mysql Total
Database connection0.00130.219910.0013
Mysqli_queries0.540991.9978470.0115
Looping result0.00060.1003450.0000
Template Total0.554894.420.2774
Template load0.00240.403220.0012
Template processing0.552493.948420.2762
Template load and register function0.00020.041210.0002
states
state_id_array0.00170.283810.0017
state_identifier_array0.00110.190620.0006
Override
Cache load0.00190.329680.0002
Sytem overhead
Fetch class attribute can translate value0.00110.191210.0011
Fetch class attribute name0.00070.113610.0007
XML
Image XML parsing0.00010.024710.0001
class_abstraction
Instantiating content class attribute0.00000.000710.0000
General
dbfile0.00891.5108120.0007
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs