Forums / General / go directly to the first sub folder
Tiziano Zonta
Wednesday 11 May 2005 8:07:48 am
Hi,I have this problem:i have 1 folder with some sub-folders inside.I whant to display the content on the first sub-folder when i click on the link of the parent-folder (whitout have a "middle-page").I am new in ezpublish (some weeks).How I can do this?
tnx
Tiziano
Lex 007
Wednesday 11 May 2005 8:59:22 am
I would use this kind of code (untested) :
{let firstchild=fetch('content', 'list', hash( parent_node_id, $node.node_id, limit,1 )) } {section name=Child loop=$firstchild} {node_view_gui view=full content_node=$:item} {/section} {/let}