1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
<ul id="dropdown-demo" class="dropdown">
{let page_limit=10
children=fetch('content','list',
hash(parent_node_id,2,
limit,$page_limit,
offset,$view_parameters.offset,class_filter_type, "include", class_filter_array, array(1)))
child_count=fetch('content','list_count',hash(parent_node_id,$node.node_id,class_filter_type, "include", class_filter_array, array(1)))}
{section name=Child loop=$children last-value}
<li>
<a href={$Child:item.url_alias|ezurl}>{$Child:item.name}</a>
{let sub_children=fetch('content','list',hash(parent_node_id,$Child:item.node_id,limit,$page_limit,class_filter_array, array(1)))
sub_child_count=fetch('content','list_count',hash(parent_node_id,$Child:item.node_id,class_filter_type, "include", class_filter_array, array(1)))}
{section show = $:sub_child_count|gt(0)}
<ul>
{section name=SubChild loop=$:sub_children last-value}
<li>
<a href={$:item.url_alias|ezurl}>{$:item.name}</a>
{let sub_sub_children=fetch('content','list',hash(parent_node_id,$:item.node_id,limit,$page_limit,class_filter_type, "include", class_filter_array, array(1)))
sub_sub_child_count=fetch('content','list_count',hash(parent_node_id,$:item.node_id,limit,$page_limit,class_filter_type, "include", class_filter_array, array(1)))}
{section show = $:sub_sub_child_count|gt(0)}
<ul>
{section name=sub_SubChild loop=$:sub_sub_children last-value}
<li>
<a href={$:item.url_alias|ezurl}>{$:item.name}</a>
</li>
{/section}
</ul>
{/section}
{/let}
</li>
{/section}
</ul>
{/section}
{/let}
</li>
{/section}
{/let}
</ul> |
Partager