Default sort order: Class identifier -> Why that?

Author Message

Marco Zinn

Wednesday 15 August 2007 12:06:47 pm

Hi,

i saw in a 3.9.2 install (out of the box, webmin design), that the default sort order of i.e the "article (main page)" class seems to be based on the "class identifier", which i find very useless.
More than that, i will mostly result in an undefined order of the children (when all are of the same class) AND creates problems in navigation (main / sub pages of articles or galleries / images).
When i view the class in admin, i see, that the default children sort order should be "path / ascending"... but the actual object seems to have another order. The object was created on the user siteaccess with the editor toolbar.

I guess, it's a bug when creating a an object from the user site.
Can somebody please comment on this?

Also, can somebody point me to the docs on the sort orders? I mean: what will sorting the children by "path" do? Isn't it the same as sorting by 'name'?

Marco
http://www.hyperroad-design.com

Björn Dieding@xrow.de

Wednesday 15 August 2007 7:07:54 pm

Without knowing i would take a guess:

name is related to contentobject.name
path to contentobject_tree.path_identification_string

I would expect that the result would highly differ, if you would get all children by mainnode only and if children would have multiple nodes per contect. Other then that it is more or less the same.

[the guess]

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

André R.

Thursday 16 August 2007 5:52:53 am

This should be reported as a bug, default sorting for most classes should be published descending, and classes like frontpage should use priority descending imho..

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Marco Zinn

Thursday 16 August 2007 9:15:31 am

Can somebody please try and confirm (or deny) this with a new (unaltered) 3.9.2 installation?
I'll file a bug report then.

@Björn: Yes, i thought of something like that, too. But -with standard templates- it does not make sense to me at all. Well... sorting by Class identifier or name does not make (much) sense to me either ;)

Marco
http://www.hyperroad-design.com

Łukasz Serwatka

Thursday 16 August 2007 2:33:36 pm

This problem is in eZ Publish for sometime. Default sorting should be as AR suggested, for most classes based on publication date. Sorting by content class ID is handy in admin interface where on subtree/folder contains lots of objects different classes.

Default sorting should be changed. Feel free to fill up bug report about it.

Reg. to "article (main page)", this class uses sorting by "priority" and editor need to take care about it. As front end editing interface is limited this must be set in admin interface. Of course ideally would be have that sorting pre-configured by default.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 00:32:08
Script start
Timing: Jan 19 2025 00:32:08
Module start 'layout'
Timing: Jan 19 2025 00:32:08
Module start 'content'
Timing: Jan 19 2025 00:32:09
Module end 'content'
Timing: Jan 19 2025 00:32:09
Script end

Main resources:

Total runtime0.7209 sec
Peak memory usage4,096.0000 KB
Database Queries67

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 588.1641152.6563
Module start 'layout' 0.00610.0034 740.820339.5078
Module start 'content' 0.00940.7100 780.3281663.3438
Module end 'content' 0.71950.0014 1,443.671916.1094
Script end 0.7208  1,459.7813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.5319160.0002
Check MTime0.00150.2089160.0001
Mysql Total
Database connection0.00090.126810.0009
Mysqli_queries0.656591.0726670.0098
Looping result0.00070.0986650.0000
Template Total0.686795.320.3434
Template load0.00260.367220.0013
Template processing0.684194.893220.3420
Template load and register function0.00020.025110.0002
states
state_id_array0.00160.222810.0016
state_identifier_array0.00130.184420.0007
Override
Cache load0.00220.3119310.0001
Sytem overhead
Fetch class attribute can translate value0.00110.158440.0003
Fetch class attribute name0.00130.186790.0001
XML
Image XML parsing0.00230.321440.0006
class_abstraction
Instantiating content class attribute0.00000.0040100.0000
General
dbfile0.00140.1875370.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
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/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: 24
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs