'sort_by' sort just the parent .. porblem !

Author Message

Selmah Maxim

Tuesday 24 January 2006 11:44:26 am

Hi ..

fetch(content,list,hash(parent_node_id,$top_cat, class_filter_type, "include", class_filter_array, array(22),sort_by,array( array( 'name',true() ))     ))

what the wrong here, its sort by name just the parents, but not the childs.. why ?!

Thanks in advance.

Kristof Coomans

Tuesday 24 January 2006 11:09:22 pm

You will only get the direct childs of $top_cat because it's a list fetch. If you want further descendants, try the tree fetch instead (http://ez.no/doc/ez_publish/technical_manual/3_6/reference/modules/content/fetch_functions/tree).

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Selmah Maxim

Wednesday 25 January 2006 1:00:02 am

Same problem ... not sorting the child, maybe cuz of multible "{section}" ?!

I toke the code from here, for tree listing, with depth 1 ... what to do ?!

Selmah Maxim

Wednesday 25 January 2006 1:27:21 am

The sort_array is setted on 'published' , how to change this ?!

Selmah Maxim

Wednesday 25 January 2006 1:31:56 am

Oppss ....

I forget to say, that am trying to sort the childs from the same category... but even with tree didn`t work !

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 19:16:33
Script start
Timing: Jan 18 2025 19:16:33
Module start 'layout'
Timing: Jan 18 2025 19:16:33
Module start 'content'
Timing: Jan 18 2025 19:16:33
Module end 'content'
Timing: Jan 18 2025 19:16:33
Script end

Main resources:

Total runtime0.0199 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 589.1484152.6406
Module start 'layout' 0.00700.0033 741.789139.4766
Module start 'content' 0.01030.0077 781.265689.3984
Module end 'content' 0.01800.0019 870.664134.3047
Script end 0.0199  904.9688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002814.0698140.0002
Check MTime0.00147.0032140.0001
Mysql Total
Database connection0.00115.445510.0011
Mysqli_queries0.002814.226530.0009
Looping result0.00000.080110.0000
Template Total0.00157.610.0015
Template load0.00083.911710.0008
Template processing0.00073.671410.0007
Override
Cache load0.00052.431610.0005
General
dbfile0.00021.251780.0000
String conversion0.00000.044240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs