Forums / Setup & design / How to solve this? (creating columns)

How to solve this? (creating columns)

Author Message

Mark Overduin

Thursday 28 August 2003 4:56:37 am

- - - My code - - -
{section show=$with_children}
<table width="100%" cellpadding="0" cellspacing="0" border="1">
<tr>
{section name=Child loop=fetch(content, list, hash(
parent_node_id, $node.node_id,
limit, $page_limit,
offset, $view_parameters.offset,
sort_by, $node.sort_array,
class_filter_type, exclude,
class_filter_array, array( 1, 10 ) ) )}

<td align="left">
<table border="1" cellpadding="10" cellspacing="0">
<tr>
<td valign="top">
{node_view_gui view=line content_node=$Child:item}
</td>
</tr>
</table>
</td>
{delimiter modulo=ceil( div( $list_count, 2 ) )}
</tr>
<tr>
<td>
 
</td>
</tr>
<tr>
{/delimiter}
{/section}
</tr>
</table>
{/section}
- - - - - - - -

I want to display the headlines+intro's of my articles in columns and rows.

Example:
- - -
Row1 - Column1;
HEADLINE
Intro text

Row1 - Column2;
HEADLINE
Intro text

Row2 - Column1;
Etc...
- - -

How can I solve this?

Thanx in advance.

-- Mark

Mark Overduin

Thursday 28 August 2003 5:50:29 am

[oops]

Mark Overduin

Friday 29 August 2003 12:46:18 am

I solved it.

I changed the line {delimiter modulo=ceil( div( $list_count, 2 ) )}
to
{delimiter modulo=2}

Found it in the SDK. Read it by accident :D