how to exclude current node?

how to exclude current node?

Wednesday 28 April 2004 6:15:24 am - 1 reply

Author Message

Alex Jones

Wednesday 28 April 2004 6:45:47 am

You should be able to compare the node of the displayed item against <i>$DesignKeys:used.node</i> which is the node id of the page you are on.

{section var=image loop=$image_list}
  {* Show only if the item isn't equal to the current node *}
  {section show=ne($DesignKeys:used.node,$:item.node_id)} 
    {node_view_gui view=line href=$image.item.url_alias|ezurl content_node=$image.item}
  {/section}
{/section}

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!

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