$module_result.content sort order

Author Message

arthur foelsche

Friday 18 April 2003 8:24:08 am

Does anyone know where the sort order of {$module_result.content} is defined? It appears to sort by name by default and it would like to change it to sort by published. Thanks!

Arthur

Paul Borgermans

Saturday 19 April 2003 4:40:30 am

There are 2 issues here really. The default sort order is defined for the parent node (see the admin interface)

It depends also on the module/action being requested. You are probably looking at the pagelayout_*.tpl. That's for the global site layout. For content views (which generate the $module_result.content), you need to dig deeper in the design directories, for instance /design/demo/override/templates/node/view/ contains the templates you are lookign for in teh demo site.

See the documentation (and ezwiki pages) for more

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

arthur foelsche

Saturday 19 April 2003 1:02:07 pm

Thanks for the reply. I was figuring that it would be more complex- of course its in the admin interface! Doh! Thanks for putting up with the newbie questions- its great that people are willing to answer!

thanks again!

arthur

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

Main resources:

Total runtime0.0143 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 587.9375152.6250
Module start 'layout' 0.00510.0018 740.562539.4453
Module start 'content' 0.00700.0050 780.007889.2422
Module end 'content' 0.01190.0023 869.250030.3047
Script end 0.0142  899.5547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002617.9769140.0002
Check MTime0.00117.9000140.0001
Mysql Total
Database connection0.00096.203810.0009
Mysqli_queries0.001611.041930.0005
Looping result0.00000.070110.0000
Template Total0.001812.310.0018
Template load0.00096.576110.0009
Template processing0.00085.686210.0008
Override
Cache load0.00074.636110.0007
General
dbfile0.00032.125280.0000
String conversion0.00000.048440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs