creating a home link on topmenu

Author Message

Matt Brady

Monday 12 February 2007 5:04:37 pm

I'm trying to find a simple way to create the home link on the top menu that will work with the "selected" css.

At present I've just changed the flat_top.tpl to include:

<li ><div class="spacing"><a href={$node.url_alias|ezurl(2)}>home</a></div></li>

which is probably the wrong way to do it but works... except that when on the home page the selected css doesn't display.

It's not easy being easy.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 16:09:54
Script start
Timing: Jan 18 2025 16:09:54
Module start 'layout'
Timing: Jan 18 2025 16:09:54
Module start 'content'
Timing: Jan 18 2025 16:09:55
Module end 'content'
Timing: Jan 18 2025 16:09:55
Script end

Main resources:

Total runtime0.6345 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 589.0313152.6250
Module start 'layout' 0.00520.0025 741.656339.4609
Module start 'content' 0.00770.6252 781.1172427.7734
Module end 'content' 0.63290.0016 1,208.89068.1641
Script end 0.6345  1,217.0547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.5009160.0002
Check MTime0.00130.2069160.0001
Mysql Total
Database connection0.00090.139510.0009
Mysqli_queries0.599594.4891460.0130
Looping result0.00040.0588440.0000
Template Total0.605495.420.3027
Template load0.00210.329820.0010
Template processing0.603395.083020.3016
Template load and register function0.00010.020510.0001
states
state_id_array0.00110.166110.0011
state_identifier_array0.00090.148020.0005
Override
Cache load0.00160.259070.0002
Sytem overhead
Fetch class attribute can translate value0.00060.093810.0006
Fetch class attribute name0.00060.100710.0006
XML
Image XML parsing0.00010.015310.0001
class_abstraction
Instantiating content class attribute0.00000.000610.0000
General
dbfile0.00060.0981100.0001
String conversion0.00000.001140.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
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs