Sunday 04 February 2007 6:16:03 am
Hello Felix, thank you, that helped me to find the code. Strangely the sitemap function it is located in the design folder... but anyway.
I made a copy in: \design\my_siteaccess\override\templates\node\view\sitemap.tpl It works, changes to the file are now applied. However, the more callenging part is how to modify the code block: This is the standard code:
{section name=Child loop=$children}
<td>
<h2><a href={$Child:item.url_alias|ezurl}>{$Child:item.name}</a></h2>
{let sub_children=fetch('content','list',hash(parent_node_id,$Child:item.node_id,limit,$page_limit))
sub_child_count=fetch('content','list_count',hash(parent_node_id,$Child:item.node_id))}
<ul>
{section name=SubChild loop=$:sub_children}
<li><a href={$:item.url_alias|ezurl}>{$:item.name}</a></li>
{/section}
</ul>
{/let}
</td>
{delimiter modulo=$col_count}
</tr>
<tr>
{/delimiter}
{/section}
That looks like a nested loop. I suppose "let" is the function that performs a loop. However, the doc says "let" is deprecated, give no hint or clue what to use instead: http://ez.no/doc/ez_publish/technical_manual/3_8/reference/template_functions/variables/let I'm stuck. I don't know how to modify the loop to display more than 2 levels. Can anyone help? Regards, Andreas Tremel
|