Forums / Developer / Searching/Filtering / Comment41918

Author Topic

Lazaro Ferreira

Wednesday 15 December 2004 1:32:41 pm

Comment41918

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