EzFind 2 - custom filter

EzFind 2 - custom filter

Tuesday 31 March 2009 5:12:11 am - 2 replies

Author Message

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

You must be logged in to post messages in this topic!

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