Double results :-)

Author Message

Kjell Inge Sandvik

Monday 25 April 2005 11:02:41 am

Sorry forum for filling up with noob-questions :-)

This is what I have in my template:

{let nodes=fetch('content','list',hash('parent_node_id',66))}
{* Loop through the children, display node names. *}

{section loop=$nodes}
    {$item.name}<br />
	{attribute_view_gui attribute=$node.object.data_map.image image_class="small"}<br />
{/section}

{/let}

This works great, but I get each article twice... anyone...?

Sandvik Web & Data

Ɓukasz Serwatka

Monday 25 April 2005 11:15:41 pm

Probadly some of your nodes are in many locations.

main_node_only, true()

Should do the trick

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 18 2025 22:14:29
Script start
Timing: Jan 18 2025 22:14:29
Module start 'layout'
Timing: Jan 18 2025 22:14:29
Module start 'content'
Timing: Jan 18 2025 22:14:30
Module end 'content'
Timing: Jan 18 2025 22:14:30
Script end

Main resources:

Total runtime0.5708 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0043 587.7891152.6094
Module start 'layout' 0.00430.0021 740.398439.4297
Module start 'content' 0.00640.5629 779.8281532.6797
Module end 'content' 0.56930.0015 1,312.50788.1875
Script end 0.5708  1,320.6953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00280.4922160.0002
Check MTime0.00120.2062160.0001
Mysql Total
Database connection0.00060.111810.0006
Mysqli_queries0.528092.4869540.0098
Looping result0.00040.0741520.0000
Template Total0.547495.920.2737
Template load0.00200.350920.0010
Template processing0.545495.543720.2727
Template load and register function0.00010.021710.0001
states
state_id_array0.00060.113010.0006
state_identifier_array0.00070.119820.0003
Override
Cache load0.00160.2811130.0001
Sytem overhead
Fetch class attribute can translate value0.00080.141020.0004
Fetch class attribute name0.00090.150640.0002
XML
Image XML parsing0.00110.199020.0006
class_abstraction
Instantiating content class attribute0.00000.001140.0000
General
dbfile0.00190.3297240.0001
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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs