Wednesday 13 September 2006 8:09:43 am
Hi Claudia, Nope, class filter set to 'folder' doesn't help. In addition, the same behaviour applies for all other nodes as well, hence it is not restricted to the top level content node alone. Leading to the conclusion that maybe the source of the problem is not related to seemingly empty nodes at all; maybe the variable '$module_result' isn't initialized correctly... If I apply another example for building navigation menus, some output <b>is</b> generated:
{let folder_list=fetch( content, list, hash(parent_node_id, 2, sort_by, array( array( priority ))))}
<ul>
{section name=top_level loop=$folder_list}
<li><a href={concat("/",$top_level:item.url_alias)|ezroot}>{$top_level:item.name|wash}</a>
{section show=$top_level:item.node_id|eq($module_result.path[1].node_id}
{let sub_folder_list=fetch( content, list, hash(parent_node_id, $module_result.path[1].node_id, sort_by, array( array( priority ))))}
<ul>
{section name=sub_level loop=$top_level:sub_folder_list}
<li><a href={concat("/",$top_level:sub_level:item.url_alias)|ezroot}>{$top_level:sub_level:item.name|wash}</a></li>
{/section}
</ul>
{/let}
{/section}
</li>
{/section}
</ul>
{/let}
This results (for nodeID: 2) in:
<ul>
<li><a href="/~intranet/index.php/verenigingszaken">Verenigingszaken</a>
<ul></ul>
</li>
<li><a href="/~intranet/index.php/de_nmv_kennisbank">De NMV-Kennisbank</a>
<ul></ul>
</li>
.... etc ....
</ul>
So: Why doesn't the 'treemenu' operator behaves like the 'fetch' operator although they operate on the same node? Or don't they operate on the same node?
Again, thanks in advance. I'm really stuck here. Paul
|