active Homelink

Author Message

Lukie Fantana

Monday 15 October 2007 6:22:51 am

After a long birth my firts eZ site is ready. That means that I am still newbie.
http://maccabi.sv106.creativedevelopment.de/

I have the Problem that my homebutton is not active at startup and when is selected. I made a link in the treemenu called Home with the url: /

What I have to do that the Home button is active? It should gets the class="selected current"

thx for answer.

Frédéric DAVID

Monday 15 October 2007 7:08:29 am

the content root node have the node id 2. Then you can fetch the node 2 to have the url_alias of your home.

{def $home=fetch(content,node,hash(node_id,2))}
<a href={$home.url_alias|ezurl}>Home</a>
{undef $home}

For your class "selected", the method is different if you are in your pagelayout or in your object template.

Blog : http://www.frefred.fr/blog/ez-publish
feZ Meta Data : http://projects.ez.no/fezmetadata

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 19:09:28
Script start
Timing: Jan 18 2025 19:09:28
Module start 'layout'
Timing: Jan 18 2025 19:09:28
Module start 'content'
Timing: Jan 18 2025 19:09:29
Module end 'content'
Timing: Jan 18 2025 19:09:29
Script end

Main resources:

Total runtime1.1192 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0093 588.9063152.6094
Module start 'layout' 0.00930.0033 741.515639.4297
Module start 'content' 0.01251.1050 780.9453521.3047
Module end 'content' 1.11760.0016 1,302.25008.1953
Script end 1.1192  1,310.4453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.3224160.0002
Check MTime0.00140.1251160.0001
Mysql Total
Database connection0.00200.177810.0020
Mysqli_queries1.067195.3400540.0198
Looping result0.00050.0477520.0000
Template Total1.078996.420.5394
Template load0.00260.233720.0013
Template processing1.076296.158420.5381
Template load and register function0.00020.016010.0002
states
state_id_array0.00120.108210.0012
state_identifier_array0.00080.074920.0004
Override
Cache load0.00210.1911130.0002
Sytem overhead
Fetch class attribute can translate value0.00070.063220.0004
Fetch class attribute name0.00090.077830.0003
XML
Image XML parsing0.00340.304020.0017
class_abstraction
Instantiating content class attribute0.00000.000530.0000
General
dbfile0.00470.4196160.0003
String conversion0.00000.000940.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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: 10
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs