template...

Author Message

enigmista enigmista

Friday 26 September 2003 6:31:38 am

i have ezpublish-3[1].2-1_installer.exe distribution. in main template i have this..:

<div id="linkList">
<hr />
<h3 class="select"><span>Main menu</span></h3>
<ul>
{let top_cat=2 used_node=false()}
{section show=is_set($DesignKeys:used.node)}
{set used_node=$DesignKeys:used.node}
{section-else}
{set used_node=$top_cat}
{/section}
{let node_obj=fetch(content,node,hash(node_id,$used_node))}
{section loop=fetch(content,list,hash(parent_node_id,$top_cat, class_filter_type, "include", class_filter_array, array(1),sort_by,array(array(priority))))}
<li><a href={concat("/content/view/full/",$:item.node_id,"/")|ezurl}>{$:item.name}</a></li>
{/section}
{/let}
{/let}
</ul>
</div>
<div id="linkListSub">
<hr />
<h3 class="select"><span>Submenu</span></h3>
<ul>
{let children=fetch('content',list,hash(parent_node_id,$node.node_id))}
{section name=Child loop=$children max=6}
<li><a href={concat("/content/view/full/",$Child:item.node_id)|ezurl}>{$Child:item.name}</a></li>
{/section}
{/let}
</ul>
</div>

and i can see menu and submenu... if i reload page i cannot see the submenu O_O why? tnx

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.