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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 07:03:46
Script start
Timing: Jan 31 2025 07:03:46
Module start 'layout'
Timing: Jan 31 2025 07:03:46
Module start 'content'
Timing: Jan 31 2025 07:03:47
Module end 'content'
Timing: Jan 31 2025 07:03:47
Script end

Main resources:

Total runtime1.2063 sec
Peak memory usage4,096.0000 KB
Database Queries55

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 589.3516151.2109
Module start 'layout' 0.00620.0056 740.562536.6484
Module start 'content' 0.01181.1936 777.2109868.8438
Module end 'content' 1.20540.0009 1,646.05477.8438
Script end 1.2063  1,653.8984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2657160.0002
Check MTime0.00130.1050160.0001
Mysql Total
Database connection0.00070.055010.0007
Mysqli_queries1.123293.1092550.0204
Looping result0.00050.0421530.0000
Template Total1.132393.920.5661
Template load0.00210.177720.0011
Template processing1.130193.682620.5651
Template load and register function0.00120.102110.0012
states
state_id_array0.00180.153210.0018
state_identifier_array0.00090.070620.0004
Override
Cache load0.00180.1509600.0000
Sytem overhead
Fetch class attribute can translate value0.00050.045310.0005
Fetch class attribute name0.00170.144630.0006
XML
Image XML parsing0.00010.008810.0001
class_abstraction
Instantiating content class attribute0.00000.000630.0000
General
dbfile0.00250.2097100.0003
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs