How to integrate standard search

Author Message

Don Blogger

Sunday 30 November 2008 3:11:04 am

Hi,

I have seen information about standard search in various places, but never how to integrate it.

Could anybody please provide a sample or give me more information on how to have my own search text field working?

TIA,

DonBlogger

Gaetano Giunta

Monday 01 December 2008 2:50:24 am

The best way to find out about the "standard" search api is to download ezfind (or another ezp serach extension) and look at the code.

Principal Consultant International Business
Member of the Community Project Board

John Moritz

Monday 01 December 2008 6:57:29 am

If you just want a quick and dirty solution for the standard search and only need the search text field, include the following code into your search site:

<form action="/index.php/content/search">
<input id="searchtext" name="SearchText" type="text" value="" size="12" />
<input id="searchbutton" class="button" type="submit" value="Suchen" alt="Submit" />
</form>

This should work.

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 20:57:59
Script start
Timing: Jan 18 2025 20:57:59
Module start 'layout'
Timing: Jan 18 2025 20:57:59
Module start 'content'
Timing: Jan 18 2025 20:57:59
Module end 'content'
Timing: Jan 18 2025 20:57:59
Script end

Main resources:

Total runtime0.6197 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 587.9375152.6250
Module start 'layout' 0.00660.0032 740.562539.4453
Module start 'content' 0.00980.6085 780.0078564.4453
Module end 'content' 0.61830.0014 1,344.45318.1563
Script end 0.6197  1,352.6094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.5370160.0002
Check MTime0.00130.2099160.0001
Mysql Total
Database connection0.00150.241710.0015
Mysqli_queries0.572192.3169590.0097
Looping result0.00060.0986570.0000
Template Total0.590095.220.2950
Template load0.00240.381020.0012
Template processing0.587694.816420.2938
Template load and register function0.00020.035810.0002
states
state_id_array0.00080.121010.0008
state_identifier_array0.00170.266420.0008
Override
Cache load0.00190.3126180.0001
Sytem overhead
Fetch class attribute can translate value0.00070.109030.0002
Fetch class attribute name0.00110.169640.0003
XML
Image XML parsing0.00110.182030.0004
class_abstraction
Instantiating content class attribute0.00000.001540.0000
General
dbfile0.00100.1677160.0001
String conversion0.00000.001340.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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/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: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs