Can I do this?

Author Message

Vicente Olivan

Tuesday 29 January 2008 1:03:49 pm

Default, on ez publish, if I ordered the first 5 articles or items for priority/descending, this happens:

article | priority 5
article | priority 4
article | priority 3
article | priority 2
article | priority 1
article | First published
...
article | Last published

But I want

article | priority 1
article | priority 2
article | priority 3
article | priority 4
article | priority 5
article | Last published
...
article | First published

Can I reverse order, in admin and site public?
I tried to change the <b>children.tpl</b> template in admin design with <b>'sort_by' array (array ( 'priority', true ()), array ( 'published', true ()),</b> but it doesn´t works.
Thanks in advanced

Vicente Olivan

Tuesday 29 January 2008 4:48:55 pm

Hi
I had a stupid mistake:

'sort_by' array (array ( 'priority', true ()), array ( 'published', true ()) <b>)</b>,

I´m trying set value ascending/descending to priority array...
Some suggestion or documentation?
Thanks

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

Main resources:

Total runtime0.0151 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 587.7891152.6094
Module start 'layout' 0.00580.0026 740.398439.4141
Module start 'content' 0.00840.0049 779.812589.4141
Module end 'content' 0.01330.0017 869.226630.3047
Script end 0.0150  899.5313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002717.8070140.0002
Check MTime0.00128.0265140.0001
Mysql Total
Database connection0.00085.279710.0008
Mysqli_queries0.002315.345330.0008
Looping result0.00000.079210.0000
Template Total0.00159.710.0015
Template load0.00096.009610.0009
Template processing0.00063.685510.0006
Override
Cache load0.00074.369410.0007
General
dbfile0.00021.651280.0000
String conversion0.00000.058640.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