EzFind 2 - custom filter

Author Message

Sylvain Gogel

Tuesday 31 March 2009 5:12:11 am

the doc says:

filter
The filter is used when creating faceted search templates for drill-down navigation. Filters
are used to limit the search result set without altering the relevancy sort order. Facet
results contain filter definitions that can be used directly. Custom filter definitions can also
be created.

How can i create such a custom filter definition?

--
http://www.ecedi.fr
Agence Web, Créa/Conseils, Accessibilité
eZPublish, Drupal, Zend, Symfony

Emmanuel Courmont

Wednesday 01 April 2009 6:55:35 pm

Hi Sylvain,

You can create a filter in your search form. Here is an example for a dropdown box:

 <select name="filter[]">
  <option value="{contact($content_class_identifier, '/', $attribute_identifier, ':', $value1}">value1</option>
  <option value="{contact($content_class_identifier, '/', $attribute_identifier, ':', $value2}">value2</option>
  <option value="{contact($content_class_identifier, '/', $attribute_identifier, ':', $value1}">value2</option>
</select>

You can get them with the new fetch operator:

  {$filterParameters = fetch( ezfind, filterParameters )}

Note: you can use filters without the facets.

Regards.

Sylvain Gogel

Thursday 02 April 2009 1:05:40 am

Ha, this is a custom filter?

i thought it was something that allow more than the std syntax

thanks

--
http://www.ecedi.fr
Agence Web, Créa/Conseils, Accessibilité
eZPublish, Drupal, Zend, Symfony

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.