Search results

Author Message

sergey podlesnyi

Tuesday 04 February 2003 9:13:05 am

I copied search form code from one of the supplied demo templates, and installed to my site (www.computercommunity.com). Search works well for single word search (e.g. try to search for "3050" on my site).

If however I search for two or more words combination (e.g. search for "RSA-3050") I get the resulting object names well but not their "main_node_id" which makes URL's to found objects invalid.

Output is produced in a loop like

{section name=Search loop=$search_result}
{$Search:item.name} -- prints correctly in any case
{$Search:item.main_node_id} -- prints only for one-word search
{$Search:item[0]} -- prints a contentobject_id which I do not know how to use to build a URL from...

Any help please...

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

Main resources:

Total runtime0.8914 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.0055 589.0234152.6250
Module start 'layout' 0.00550.0022 741.648439.4453
Module start 'content' 0.00770.8820 781.0938400.4844
Module end 'content' 0.88970.0017 1,181.57818.1797
Script end 0.8914  1,189.7578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.4475160.0002
Check MTime0.00190.2118160.0001
Mysql Total
Database connection0.00150.169910.0015
Mysqli_queries0.846894.9912460.0184
Looping result0.00050.0528440.0000
Template Total0.853395.720.4266
Template load0.00430.485320.0022
Template processing0.848995.232020.4245
Template load and register function0.00020.026210.0002
states
state_id_array0.00140.153310.0014
state_identifier_array0.00250.282420.0013
Override
Cache load0.00380.4222110.0003
Sytem overhead
Fetch class attribute can translate value0.00080.086910.0008
Fetch class attribute name0.00080.094310.0008
XML
Image XML parsing0.00020.017710.0002
class_abstraction
Instantiating content class attribute0.00000.000610.0000
General
dbfile0.00080.0851100.0001
String conversion0.00000.002840.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
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/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: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs