SubTreeArray[] search restriction not working

Author Message

Sander van den Akker

Sunday 18 April 2010 9:18:29 am

Hi people! I'm trying to implement a subtree restriction when searching through one of my sites, but I can't get it to work. The form variable should be SubTreeArray[] according to kernel/content/search.php, but when set to a node, the eZ Find engine still searches the whole site.

Has anyone got a clue? Thanks in advance!

eZ Publish certified developer
http://auth.ez.no/certification/verify/392313

Nicolas Pastorino

Monday 19 April 2010 12:48:52 am

Hi Sander,

With DebugOutput enabled, how does the params array passed to eZ Find look ? (it is dumped systematically)

Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Sander van den Akker

Tuesday 20 April 2010 12:35:32 am

I found out the array was already declared in another template. Now it's working. Thanks for your help!

eZ Publish certified developer
http://auth.ez.no/certification/verify/392313

Nicolas Pastorino

Tuesday 20 April 2010 8:24:29 am

That's good news!
Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

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

Main resources:

Total runtime0.6269 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 588.0469152.6406
Module start 'layout' 0.00700.0039 740.687539.4766
Module start 'content' 0.01090.6145 780.1641555.3125
Module end 'content' 0.62540.0015 1,335.476612.1250
Script end 0.6269  1,347.6016 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.6039160.0002
Check MTime0.00150.2408160.0001
Mysql Total
Database connection0.00100.158210.0010
Mysqli_queries0.565590.1966600.0094
Looping result0.00080.1266580.0000
Template Total0.595695.020.2978
Template load0.00190.310420.0010
Template processing0.593794.698720.2968
Template load and register function0.00010.016410.0001
states
state_id_array0.00170.263510.0017
state_identifier_array0.00070.110220.0003
Override
Cache load0.00160.2592180.0001
Sytem overhead
Fetch class attribute can translate value0.00100.159220.0005
Fetch class attribute name0.00150.231660.0002
XML
Image XML parsing0.00100.156220.0005
class_abstraction
Instantiating content class attribute0.00000.002980.0000
General
dbfile0.00200.3118230.0001
String conversion0.00000.001440.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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/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/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: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs