Share » Forums » Setup & design » detecting front page

detecting front page

detecting front page

Tuesday 06 July 2004 3:17:02 pm - 1 reply

Author Message

Alex Jones

Wednesday 07 July 2004 6:54:28 am

Marko, you can use the section tag to detect whether the main page is being displayed, and if it is show your content:

{section show=eq($DesignKeys:used.node,2)}
  Place the content to show up on the front page here.
{/section}

This compares the currently displayed node (<i>$DesignKeys:used.node</i>) against Node ID 2 (the default ID of the main page in an eZ install). If they are equal, it will show the contents, if not, it won't show anything.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

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

36 542 Users on board!

Forums menu