Limit search to one class

Author Message

Michael Fürst

Tuesday 17 March 2009 2:11:19 pm

Hi there,

Is it possible, to limit the eZ Standard search (eZP 4.0.3) to one class? For example to get only a resultset of object from class type "article"?

Thanks in advance,
ciao,
Mike

Jan Komárek

Tuesday 17 March 2009 5:48:05 pm

I think this is posible only in advanced search. But its still part of eZP 4.0 no plugins...

Zion Tech

Tuesday 17 March 2009 11:01:16 pm

Hey Mike,

Take a look at: http://ez.no/ezpublish/documentation/customization/components/search/custom_search_box

You can use:

<form action={"/content/advancedsearch/"|ezurl} method="get">

<input class="searchbox" type="text" size="8" name="SearchText" id="Search" value="" />

<input class="searchbutton" name="SearchButton" type="submit" value="Search" />

<input type="hidden" name="SearchContentClassID" value="14" />

</form>

Jean-Yves Zinsou

Wednesday 18 March 2009 12:24:05 am

Do Androids Dream of Electric Sheep?
I dream of eZpubliSheep....
------------------------------------------------------------------------
http://www.alma.fr

Michael Fürst

Wednesday 18 March 2009 1:32:33 pm

Thanks a lot for the good ideas - it works now (with advanced search)

Regards,
Mike

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 31 2025 03:37:43
Script start
Timing: Jan 31 2025 03:37:43
Module start 'layout'
Timing: Jan 31 2025 03:37:43
Module start 'content'
Timing: Jan 31 2025 03:37:43
Module end 'content'
Timing: Jan 31 2025 03:37:43
Script end

Main resources:

Total runtime0.0254 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 588.1328151.2109
Module start 'layout' 0.00620.0041 739.3438220.6875
Module start 'content' 0.01040.0137 960.03131,001.9141
Module end 'content' 0.02400.0014 1,961.945333.9922
Script end 0.0254  1,995.9375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00259.8702140.0002
Check MTime0.00104.1090140.0001
Mysql Total
Database connection0.00083.169410.0008
Mysqli_queries0.004015.779630.0013
Looping result0.00000.039410.0000
Template Total0.00103.810.0010
Template load0.00083.052210.0008
Template processing0.00020.719210.0002
Override
Cache load0.00062.213910.0006
General
dbfile0.00218.429080.0003
String conversion0.00000.031940.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