eZsearch - sort by in fetch

Author Message

K259

Sunday 20 November 2005 8:47:23 am

I need to get articles and folders first in the ezsearch-result, and also group the search-results.

Does anyone know how I can fix this in the ezsearch?

Ɓukasz Serwatka

Tuesday 29 November 2005 6:30:28 am

Use sort_by parameter for result sorting.
http://ez.no/doc/ez_publish/technical_manual/3_6/reference/modules/content/fetch_functions/search

If you want to group results, you will have do to this during loop, create new array. Look on "append" tpl operator.

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

Main resources:

Total runtime0.0148 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.0052 589.1563152.6250
Module start 'layout' 0.00520.0034 741.781339.4453
Module start 'content' 0.00860.0044 781.226689.3203
Module end 'content' 0.01300.0018 870.546930.3047
Script end 0.0148  900.8516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002315.6204140.0002
Check MTime0.00117.1094140.0001
Mysql Total
Database connection0.00095.844610.0009
Mysqli_queries0.003221.421630.0011
Looping result0.00000.162510.0000
Template Total0.001510.110.0015
Template load0.00074.885510.0007
Template processing0.00085.189610.0008
Override
Cache load0.00053.334210.0005
General
dbfile0.00021.530380.0000
String conversion0.00000.048340.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