Forums / Setup & design / Problem with fetch

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