Problem with fetch

Author Message

Lydie Soler

Thursday 02 February 2006 10:08:16 am

Hi,

I have a problem with my fetch...
if I do this

{default limit=5}
    {section show=$sort_by|count|eq( 0 )}{set sort_by='modified'}{/section}

    {let node_list=cond( $treelist_check|eq( 'yes' ),
                             fetch( content, tree, hash( parent_node_id, 89,
                                    			   limit, $limit,
									   depth, 10,
									   class_filter_type, include,
				                                 class_filter_array, array( 'article','folder')
                                    			  ) 
					     ),
                             fetch( content, list, hash( parent_node_id,89,
                                				   limit, $limit,
				 					   depth, 10,
									   class_filter_type, include,
				                                 class_filter_array, array( 'article',folder')

                                				  ) 
					    ) 
				)}

I only get 3 elements... although there are plenty other that can be picked up by this fecth... if I increase the limit number I get more... But I though {default limit=5} would mean that I would get 5...
What am I missing???

Thanks a lot

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 01:05:01
Script start
Timing: Jan 18 2025 01:05:01
Module start 'layout'
Timing: Jan 18 2025 01:05:01
Module start 'content'
Timing: Jan 18 2025 01:05:02
Module end 'content'
Timing: Jan 18 2025 01:05:02
Script end

Main resources:

Total runtime0.5477 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 589.0234152.6250
Module start 'layout' 0.00660.0034 741.648439.4297
Module start 'content' 0.00990.5363 781.0781403.0156
Module end 'content' 0.54620.0015 1,184.09388.3438
Script end 0.5477  1,192.4375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.6030160.0002
Check MTime0.00140.2486160.0001
Mysql Total
Database connection0.00120.214910.0012
Mysqli_queries0.509292.9584460.0111
Looping result0.00040.0755440.0000
Template Total0.511693.420.2558
Template load0.00200.368420.0010
Template processing0.509593.021820.2548
Template load and register function0.00020.029210.0002
states
state_id_array0.00100.185510.0010
state_identifier_array0.00090.156820.0004
Override
Cache load0.00160.2861100.0002
Sytem overhead
Fetch class attribute can translate value0.00050.089610.0005
Fetch class attribute name0.00040.079610.0004
XML
Image XML parsing0.00010.019510.0001
class_abstraction
Instantiating content class attribute0.00000.000710.0000
General
dbfile0.00170.3182100.0002
String conversion0.00000.002040.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/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: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs