Share » Forums » Setup & design » Fetching nodes, while excluding the...

Fetching nodes, while excluding the actual node

Fetching nodes, while excluding the actual node

Thursday 23 November 2006 8:19:15 am - 2 replies

Author Message

Ahmed El Safty

Friday 24 November 2006 5:13:51 am

Anybody with an idea?

Is the description of the problem not clear?

If not, please let me know.

thanks...

Harry Oosterveen

Friday 24 November 2006 8:31:40 am

Hi,

You can't solve all with the fetch functions, but the solution here would be to exclude the specific node in the template:

For example:

{def $nodes=fetch( 'content', 'list',
        hash( 'parent_node_id', 42,
              'depth', 3 ) )}
 
{foreach $nodes as $node}
    {if $node.node_id|eq(123)}
        {continue}
    {/if}
    {$node.name|wash} <br />
{/foreach}

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

36 542 Users on board!

Forums menu