Specific folders search

Author Message

Alexei Pechekhonov

Monday 07 April 2003 4:25:32 am

Could somebody please let me know how I can make searches specific
to certain folders. I wish to place a check-box next my search and allow
users to tick which areas they would like to search?

Doing searches over a single folder or all folders is easy, but I am
unclear on how to search over 3 or 4 specific ones only.

Thanks
Alexei

Bård Farstad

Friday 11 April 2003 7:15:02 am

To create a search which searches only in the current, or any given node you can do something like this:

<form action="/content/search/" method="get">
<input type="text" name="SearchText" id="Search" value="" />
<input class="searchbutton" name="SearchButton" type="submit" value="Search" />
<input type="hidden" name="SubTreeArray[]" value="42" />
</form>

Where 42 is replaced by the ID of the node you want to search in. Note: this will search in this node and any subnode.

You can also search in several nodes by adding several hidden variables like:
<input type="hidden" name="SubTreeArray[]" value="42" />
<input type="hidden" name="SubTreeArray[]" value="43" />

--bård

Documentation: http://ez.no/doc

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

Main resources:

Total runtime1.4340 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 589.0234152.6250
Module start 'layout' 0.00490.0027 741.648439.4453
Module start 'content' 0.00751.4249 781.0938527.1875
Module end 'content' 1.43250.0014 1,308.28138.1719
Script end 1.4339  1,316.4531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2258160.0002
Check MTime0.00130.0896160.0001
Mysql Total
Database connection0.00040.028610.0004
Mysqli_queries1.387396.7474540.0257
Looping result0.00080.0549520.0000
Template Total1.401697.720.7008
Template load0.00220.156120.0011
Template processing1.399497.587920.6997
Template load and register function0.00020.016510.0002
states
state_id_array0.00090.064910.0009
state_identifier_array0.00200.136320.0010
Override
Cache load0.00180.1239230.0001
Sytem overhead
Fetch class attribute can translate value0.00180.123520.0009
Fetch class attribute name0.00160.108830.0005
XML
Image XML parsing0.00070.052020.0004
class_abstraction
Instantiating content class attribute0.00000.000730.0000
General
dbfile0.00180.1222170.0001
String conversion0.00000.000640.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
6content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs