Monday 19 April 2004 1:54:48 am
I am very new to ezpublish. I was jut trying to understand the following code.
<div id="submenu">
<div class="design">
<h3 class="invisible">Sub menu</h3>
<ul>
{let mainMenu=treemenu($module_result.path,$module_result.node_id,array('folder','info_page'), 1 )}
{section name=Menu loop=$mainMenu}
{section show=$:item.is_selected}
{/section}
<li class="level_{$:item.level}">
<a href={$:item.url_alias|ezurl}>{$Menu:item.text}</a>
</li>
{section show=$:item.is_selected}
{/section}
{/section}
{/let}
</ul>
</div>
</div>
I understood that this code is loop which displays the link.i.e {let mainMenu=treemenu($module_result.path,$module_result.node_id,array('folder','info_page'), 1 )} But i have not understood the follwing code in it i.e {section show=$:item.is_selected}
{/section}
. Removed this code from both the places but still it works fine. Please any one can tell me why this code is written and what is the purpose of this code or please tell me the exact working of the full code.
Thanks In advance Ashok Naidu
|