content fetch: add sort_by path_string

Author Message

Bruce Morrison

Monday 08 November 2004 5:14:45 pm

Currently with the content-fetch-list/tree functions you are able to sort by path. This uses the ezcontentobject_tree.path_string field. This field contains a node path (e.g. /1/2/47/53/56/)

It would be great to add sorting by the ezcontentobject_tree.path_identification_string field. The field contains a string path (e.g. users/administrator_users/administrator_user)

This is a pretty simple addition and would allow the retrieval of a alphabetical tree structure.

A patch for 3.4 can be found here http://ez.no/community/bug_reports/content_fetch_add_sort_by_path_string

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Marco Zinn

Monday 15 November 2004 1:46:03 pm

Thanks for the patch. Let's hope, that this will make it in 3.5 (hope, the feature-freeze is not this strict).
The node_path sorting usually is quite useless (for humans, at least).

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

Kåre Køhler Høvik

Wednesday 17 November 2004 6:38:08 am

Great idea, added it to trunk. Check enhancement update.

Kåre Høvik

Bruce Morrison

Wednesday 17 November 2004 2:16:45 pm

Many thanks

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

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 15:52:07
Script start
Timing: Jan 18 2025 15:52:07
Module start 'layout'
Timing: Jan 18 2025 15:52:07
Module start 'content'
Timing: Jan 18 2025 15:52:08
Module end 'content'
Timing: Jan 18 2025 15:52:08
Script end

Main resources:

Total runtime0.6422 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 589.1094153.4688
Module start 'layout' 0.00630.0029 742.578139.4219
Module start 'content' 0.00930.6313 782.0000592.7891
Module end 'content' 0.64060.0016 1,374.789112.4531
Script end 0.6422  1,387.2422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.5193160.0002
Check MTime0.00130.1986160.0001
Mysql Total
Database connection0.00130.194610.0013
Mysqli_queries0.581390.5207620.0094
Looping result0.00070.1098600.0000
Template Total0.606394.420.3032
Template load0.00240.376120.0012
Template processing0.603994.032920.3020
Template load and register function0.00010.018210.0001
states
state_id_array0.00040.056710.0004
state_identifier_array0.00090.133120.0004
Override
Cache load0.00190.3004200.0001
Sytem overhead
Fetch class attribute can translate value0.00070.116330.0002
Fetch class attribute name0.00120.190670.0002
XML
Image XML parsing0.00150.239230.0005
class_abstraction
Instantiating content class attribute0.00000.003580.0000
General
dbfile0.00090.1470270.0000
String conversion0.00000.001240.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
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/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: 17
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs