Thursday 06 October 2005 1:42:48 am
I have made a overide template for node/view/full/folder I want to list the child objects of a spesific node in a table with two columns. I tried witht the following code:
{def $column=1}
<table class="class-butikker">
{section var=child loop=$list_items sequence=array(bglight,bgdark)}
{if eq($column, 1)}
{set $column=2}
<tr>
<td>
{node_view_gui view=line content_node=$child}
</td>
{else}
{set $column=1}
<td>
{node_view_gui view=line content_node=$child}
</td>
</tr>
{/if}
{/section}
</table>
It seems that eZ Publish automatically closes the tags. The result is that i get one column and not two. Does anyone know of a clever way to solve this?
|