Sorting question

Author Message

Dariusz Wlodarczyk

Saturday 17 April 2004 11:07:12 am

I have content objects of different classes in one folder for example:
1. 10 files
2. 15 articles
3. and 4 images

In all classes I added attribute named creation_date (different than publish date of content object). It is possible to sort all objects in my folder by attribute creation_date ?

Gunnstein Lye

Monday 19 April 2004 7:34:29 am

http://ez.no/ez_publish/documentation/reference/data_fetching/content/list

Sorry, but no:
"Note that it is not possible to do attribute sorting for a collection of nodes that are of different types since each attribute is a unique entity."

Dariusz Wlodarczyk

Wednesday 21 April 2004 11:15:36 am

Ops i not found earlier this piece of documentation. So that is bad news for me :(

It is possible to add this functionality in feature versions of ezP or something like shared attributes (attributes common for all classes) ? I think this will be good enhancement to ezP functionality.

Gunnstein Lye

Thursday 22 April 2004 12:33:39 am

Everything is possible! If you need this, you should go to the bug report form and report it as a new suggestion.

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

Main resources:

Total runtime0.9867 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0044 589.0547152.6094
Module start 'layout' 0.00440.0021 741.664139.4141
Module start 'content' 0.00660.9791 781.0781522.8281
Module end 'content' 0.98570.0010 1,303.906312.5000
Script end 0.9867  1,316.4063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.2891160.0002
Check MTime0.00120.1211160.0001
Mysql Total
Database connection0.00060.064310.0006
Mysqli_queries0.944895.7533600.0157
Looping result0.00050.0459580.0000
Template Total0.961597.420.4808
Template load0.00180.178820.0009
Template processing0.959797.265620.4799
Template load and register function0.00010.007610.0001
states
state_id_array0.00070.067010.0007
state_identifier_array0.00220.219520.0011
Override
Cache load0.00150.1472210.0001
Sytem overhead
Fetch class attribute can translate value0.00050.052320.0003
Fetch class attribute name0.00090.088360.0001
XML
Image XML parsing0.00080.083320.0004
class_abstraction
Instantiating content class attribute0.00000.000980.0000
General
dbfile0.00070.0748220.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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs