Limit search to one "branch" of a section?

Author Message

Sven Ryen

Thursday 10 July 2003 8:25:23 am

Hi!

Is there any way to limit search to one specific branch within a section? How narrow is it possible to make the "selection" of what to preform a serch on?

Bruce Morrison

Thursday 10 July 2003 4:56:44 pm

Hi

The following works in 3.0.2

The SubTreeArray variable can be used to limit the search to a specific subtree or subtrees.

<input type="hidden" name="SubTreeArray[]" value="23">

It must be noted that only the main nodes are returned in the search, so if a content object matches the search but its main node is outside of the subtree set by this variable it will not be returned.

Cheers
Bruce
designIT

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Sven Ryen

Friday 11 July 2003 8:39:13 am

Thanks, Bruce, for enlightening me on the SubTreeArray[]

I'm a bit confused about your mention of main nodes and content objects. Do you mean objects and attributes? or is there some hidden mechanism for defining nodes as "main nodes" that I have missed. To me, all nodes/objects "look the same"...

The SubTreeArray[] isn't limited to the original content classes that shipped with the EZ installation?

Karsten Jennissen

Friday 11 July 2003 8:41:06 am

Here is some info on that:
http://ez.no/developer/ez_publish_3/documentation/general_information/concepts/building_blocks

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 15:58:08
Script start
Timing: Jan 18 2025 15:58:08
Module start 'layout'
Timing: Jan 18 2025 15:58:08
Module start 'content'
Timing: Jan 18 2025 15:58:08
Module end 'content'
Timing: Jan 18 2025 15:58:08
Script end

Main resources:

Total runtime0.0181 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 589.1484152.6406
Module start 'layout' 0.00720.0031 741.789139.4766
Module start 'content' 0.01030.0056 781.265689.3672
Module end 'content' 0.01590.0022 870.632834.3047
Script end 0.0181  904.9375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002714.7789140.0002
Check MTime0.00126.4902140.0001
Mysql Total
Database connection0.00115.839510.0011
Mysqli_queries0.002614.220230.0009
Looping result0.00000.153810.0000
Template Total0.00169.010.0016
Template load0.00094.824610.0009
Template processing0.00084.179210.0008
Override
Cache load0.00063.274710.0006
General
dbfile0.00031.434280.0000
String conversion0.00000.055240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs