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.