Sort/grouping eZ search results

Author Message

K259

Tuesday 06 December 2005 1:25:42 pm

Hi!
The content from the $SearchResult: I need to sort this instead of listing av mix of folders, articles etc.

What I want to do is: to have a topic called Misc: here shall all the folders be listed, and I want to have a topic called News: where all the news/articles shall be listed.

The design-template for this looks like:

{section name=SearchResult loop=$search_result show=$search_result}
{$SearchResult:item.name|wash}
....

Is it possible to only list Results from a class_id,'folder_id' here, and add another section beneath which only lists Results from class_id article?

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 19:24:35
Script start
Timing: Jan 18 2025 19:24:35
Module start 'layout'
Timing: Jan 18 2025 19:24:35
Module start 'content'
Timing: Jan 18 2025 19:24:36
Module end 'content'
Timing: Jan 18 2025 19:24:36
Script end

Main resources:

Total runtime0.6417 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 589.8125152.6250
Module start 'layout' 0.00540.0033 742.437539.4453
Module start 'content' 0.00860.6315 781.8828400.8672
Module end 'content' 0.64010.0015 1,182.75008.1641
Script end 0.6416  1,190.9141 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.5552160.0002
Check MTime0.00160.2462160.0001
Mysql Total
Database connection0.00050.082710.0005
Mysqli_queries0.604294.1626460.0131
Looping result0.00040.0668440.0000
Template Total0.607794.720.3038
Template load0.00230.356120.0011
Template processing0.605494.347120.3027
Template load and register function0.00020.038310.0002
states
state_id_array0.00100.155510.0010
state_identifier_array0.00090.139320.0004
Override
Cache load0.00180.284790.0002
Sytem overhead
Fetch class attribute can translate value0.00060.092410.0006
Fetch class attribute name0.00070.113410.0007
XML
Image XML parsing0.00010.017810.0001
class_abstraction
Instantiating content class attribute0.00000.000610.0000
General
dbfile0.00070.1018100.0001
String conversion0.00000.001640.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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: 6

Time used to render debug report: 0.0002 secs