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 19 2025 13:52:50
Script start
Timing: Jan 19 2025 13:52:50
Module start 'layout'
Timing: Jan 19 2025 13:52:50
Module start 'content'
Timing: Jan 19 2025 13:52:50
Module end 'content'
Timing: Jan 19 2025 13:52:50
Script end

Main resources:

Total runtime0.8852 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.0050 589.0391152.6094
Module start 'layout' 0.00500.0030 741.648439.4297
Module start 'content' 0.00800.8759 781.0781521.9063
Module end 'content' 0.88390.0014 1,302.98448.1875
Script end 0.8852  1,311.1719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3574160.0002
Check MTime0.00130.1512160.0001
Mysql Total
Database connection0.00060.067210.0006
Mysqli_queries0.839594.8366540.0155
Looping result0.00050.0514520.0000
Template Total0.858597.020.4292
Template load0.00220.245820.0011
Template processing0.856396.730520.4281
Template load and register function0.00020.018910.0002
states
state_id_array0.00080.088810.0008
state_identifier_array0.00070.075620.0003
Override
Cache load0.00180.2002110.0002
Sytem overhead
Fetch class attribute can translate value0.00090.099020.0004
Fetch class attribute name0.00090.102030.0003
XML
Image XML parsing0.00070.083220.0004
class_abstraction
Instantiating content class attribute0.00000.000830.0000
General
dbfile0.00080.0922170.0000
String conversion0.00000.001140.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.0001 secs