Always link to main location of node?

Always link to main location of node?

Monday 15 December 2003 4:45:21 pm - 1 reply

Author Message

Tore Skobba

Tuesday 16 December 2003 7:46:10 am

Hi

Sounds almost like a problem I had, I solved it by making templates overrides which fetched the main node children. Like this:

{let users=fetch(content,list,hash(parent_node_id,$node.main_node_id))}

{section name=usersList loop=$users}
{node_view_gui view=inline content_node=$usersList:item}
{/section}
{/let}

Then with some controll statments within your tree menu template it might work?

Like:
if (alternate_location=true) fetch main_node children
else fetch children

Then go through the list and print out name and links.
Cheers
Tore

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.