Sorting fetch

Author Message

Bjarte Lunde

Friday 30 July 2004 6:00:35 am

When you specify sort_by, $node.sort_array does it get the setting from the folder you're fetching from, or the one the template is in?

Example.. I have an override template for node id 2 and want to fetch items from node id 82, but the sorting is wrong...

Ole Morten Halvorsen

Monday 16 August 2004 7:23:49 am

$node.sort_array

is the sort method of your current node. If you are on /content/view/full/2 it will get the sort_array from the root folder. So in order to change your sort_array you must edit your root folder.

Ole M.

Senior Software Engineer - Vision with Technology

http://www.visionwt.com
http://www.omh.cc
http://www.twitter.com/omh

eZ Certified Developer
http://ez.no/certification/verify/358441
http://ez.no/certification/verify/272578

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 22:34:23
Script start
Timing: Jan 18 2025 22:34:23
Module start 'layout'
Timing: Jan 18 2025 22:34:23
Module start 'content'
Timing: Jan 18 2025 22:34:24
Module end 'content'
Timing: Jan 18 2025 22:34:24
Script end

Main resources:

Total runtime0.8620 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.0086 588.9141152.6094
Module start 'layout' 0.00860.0024 741.523439.3984
Module start 'content' 0.01100.8495 780.9219485.4609
Module end 'content' 0.86050.0014 1,266.38288.2031
Script end 0.8619  1,274.5859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.4534160.0002
Check MTime0.00140.1586160.0001
Mysql Total
Database connection0.00100.114610.0010
Mysqli_queries0.822195.3806540.0152
Looping result0.00070.0845520.0000
Template Total0.831496.520.4157
Template load0.00230.267920.0012
Template processing0.829096.180620.4145
Template load and register function0.00020.028410.0002
states
state_id_array0.00090.109610.0009
state_identifier_array0.00110.130620.0006
Override
Cache load0.00190.221590.0002
Sytem overhead
Fetch class attribute can translate value0.00060.071220.0003
Fetch class attribute name0.00180.208620.0009
XML
Image XML parsing0.00020.023020.0001
class_abstraction
Instantiating content class attribute0.00000.001520.0000
General
dbfile0.00050.0588100.0001
String conversion0.00000.000940.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
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs