Search within specified folder using subtree_array

Author Message

Mark Overduin

Friday 29 August 2003 2:59:09 am

Root
|_My websites
..|_Site1
..|_Site2
..|_Site3

Right now, I use the following code to search:

- - - code - - -
<form action={"/content/search/"|ezurl} method="get">
<input type="hidden" name="ClassID" value="2">
<input class="searchtext" type="text" size="10" name="SearchText" id="Search" value="" />
<input class="searchbutton" name="SearchButton" type="image" src={"search.gif"|ezimage} value="Search" />
</form>
- - - - - - - - -

How do I search within a specified folder using subtree_array?

Thanx in advance.

-- Mark

Gunnstein Lye

Thursday 11 September 2003 8:54:34 am

Adding this should do the trick:
<input type="hidden" name="SubTreeArray" value="42">
where 42 is the node id of the root of the subtree you wish to search.

Mark Overduin

Friday 19 September 2003 6:30:23 am

Works great now. Thanx!!

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 19 2025 09:49:05
Script start
Timing: Jan 19 2025 09:49:05
Module start 'layout'
Timing: Jan 19 2025 09:49:05
Module start 'content'
Timing: Jan 19 2025 09:49:06
Module end 'content'
Timing: Jan 19 2025 09:49:06
Script end

Main resources:

Total runtime1.1676 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 589.3828152.6406
Module start 'layout' 0.00590.0032 742.023439.4766
Module start 'content' 0.00911.1570 781.5000503.0313
Module end 'content' 1.16610.0015 1,284.53138.1250
Script end 1.1676  1,292.6563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.3266160.0002
Check MTime0.00140.1178160.0001
Mysql Total
Database connection0.00070.063510.0007
Mysqli_queries1.113495.3585570.0195
Looping result0.00070.0567550.0000
Template Total1.130496.820.5652
Template load0.00220.188420.0011
Template processing1.128296.622020.5641
Template load and register function0.00020.016610.0002
states
state_id_array0.00120.106910.0012
state_identifier_array0.00070.057520.0003
Override
Cache load0.00180.1547260.0001
Sytem overhead
Fetch class attribute can translate value0.00090.080220.0005
Fetch class attribute name0.00160.138340.0004
XML
Image XML parsing0.00080.072120.0004
class_abstraction
Instantiating content class attribute0.00000.000940.0000
General
dbfile0.00210.1802160.0001
String conversion0.00000.000740.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
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs