sortin by class_id

Author Message

Pablo C. Vergara Castro

Thursday 12 August 2004 7:11:08 am

Some of you can say to me how can I doing a fetch that sort by class_id or class_name?

Bård Farstad

Thursday 12 August 2004 7:44:30 am

You can do something like the code below.

{section var=node loop=fetch( 'content', 'list', 
                            hash( 'parent_node_id', 42,
                                  'sort_by', array( 'class_name', false() ) ) )}

{$node.name}
{/section}

You will find more information about this in the documentation page:
http://ez.no/ez_publish/documentation/reference/data_fetching/content/list

--bård

Documentation: http://ez.no/doc

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 15 2025 01:20:46
Script start
Timing: Jan 15 2025 01:20:46
Module start 'layout'
Timing: Jan 15 2025 01:20:46
Module start 'content'
Timing: Jan 15 2025 01:20:47
Module end 'content'
Timing: Jan 15 2025 01:20:47
Script end

Main resources:

Total runtime1.3349 sec
Peak memory usage6,144.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 684.2969183.6719
Module start 'layout' 0.00490.0029 867.968852.5469
Module start 'content' 0.00791.3252 920.51561,782.1875
Module end 'content' 1.33300.0018 2,702.703164.5703
Script end 1.3348  2,767.2734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00550.4088160.0003
Check MTime0.00130.0995160.0001
Mysql Total
Database connection0.00050.040910.0005
Mysqli_queries1.288396.5101540.0239
Looping result0.00050.0351520.0000
Template Total1.305197.820.6525
Template load0.00340.258420.0017
Template processing1.301697.508420.6508
Template load and register function0.00120.090710.0012
states
state_id_array0.00070.053810.0007
state_identifier_array0.00190.143120.0010
Override
Cache load0.00300.2265110.0003
Sytem overhead
Fetch class attribute can translate value0.00060.046720.0003
Fetch class attribute name0.00240.180230.0008
XML
Image XML parsing0.00060.046120.0003
class_abstraction
Instantiating content class attribute0.00000.000730.0000
General
dbfile0.00070.0525170.0000
String conversion0.00000.000640.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/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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs