Forums / General / go directly to the first sub folder

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

go directly to the first sub folder

Author Message

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 Exponential (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}