Fetching content with search operators on a specific node. pb then solution

Author Message

laurent le cadet

Wednesday 19 November 2003 1:57:34 am

Hi,

I'm trying to fecth content on specific nodes with the search operators.

First I tryed this :

{fetch(content,search,hash(subtree_array,35,class_id,23,class_attribute_id,337,text,'MyWord'))}

This return "Array"

Then I tryed to print the list :

{let search=fetch(content,search,hash(subtree_array,35,class_id,23,class_attribute_id,337,text,'MyWord'))}
{search['SearchResult']}
{/let}

No more result.

The next step is to make a link to the objects for each result.

I'm looking for documentations or threads about this to solve the very last problem of the site (just found 1 doc.)

Someone can help me ?

Thanks.

Laurent.
==============================

My pb was due to this thread : http://www.ez.no/developer/ez_publish_3/documentation/customization/components/search/search_operator

and specially this line

{search['SearchResult']} without "$"

I made a mix with the classic search.tpl

Hope this help.

Laurent

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

Main resources:

Total runtime0.8089 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.0056 588.4063152.6875
Module start 'layout' 0.00560.0037 741.093839.5234
Module start 'content' 0.00930.7985 780.6172441.2500
Module end 'content' 0.80780.0011 1,221.86728.2188
Script end 0.8089  1,230.0859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.3712160.0002
Check MTime0.00120.1533160.0001
Mysql Total
Database connection0.00080.095910.0008
Mysqli_queries0.767094.8240460.0167
Looping result0.00040.0446440.0000
Template Total0.774195.720.3870
Template load0.00220.270020.0011
Template processing0.771995.422220.3859
Template load and register function0.00010.011510.0001
states
state_id_array0.00140.171010.0014
state_identifier_array0.00170.209120.0008
Override
Cache load0.00180.2179260.0001
Sytem overhead
Fetch class attribute can translate value0.00040.048510.0004
Fetch class attribute name0.00050.062320.0003
XML
Image XML parsing0.00040.048010.0004
class_abstraction
Instantiating content class attribute0.00000.000320.0000
General
dbfile0.00180.2242160.0001
String conversion0.00000.001040.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs