Forums / Setup & design / Limit search to one class

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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/Exponential/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