active Homelink

active Homelink

Monday 15 October 2007 6:22:51 am - 1 reply

Author Message

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

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

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