Searching/Filtering

Searching/Filtering

Wednesday 15 December 2004 9:17:31 am - 1 reply

Author Message

Lazaro Ferreira

Wednesday 15 December 2004 1:32:41 pm

Hi,

In ezp, this is possivel :

1) programming ezp templates

2) extending ezp (php programming)

3) combining both

---------------------------------------------------
I will try to give you a briefing using #1 option

a) Override the full view template of a folder ( i.e: the folder under which you are storing the custom objects you want to filter in) to include your search or filter form
b) Submit the form to itself
c) Use ezp ezhttp template operator

http://ez.no/ez_publish/documentation/reference/template_operators/data_extraction/ezhttp

to get the value posted ( i.e: the cities' code )
d) Call ezpublish data extraction function 'fetch'

http://ez.no/ez_publish/documentation/reference/data_fetching

and pass the values got in c) as filter_attribute parameter value
e) list the results (here you can reuse the listing code already in place)
f) override google navigator template to support multiple page result navigation (only need it if listing extend over multiple pages)

Lazaro
http://www.mzbusiness.com

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.