Lack of critheria : EZP tpl versus EZP ( php ) extension

Author Message

Lazaro Ferreira

Tuesday 12 October 2004 9:18:02 am

Hi,

We have to implement an application process , basically this is the step by step process :

1) Custom Input form to enter parameters that feeds a complex data fetch (lot of fields : checkboxes, radios, and select elements)
2) Shows data fetch results that in turn is also a form, because users will check some results before next step
3) Results submitted (checked elements in 2) are use to implicitly (behind the scene) create a new object to store the search critheria (data input from step 1) and send a notification to some users ( notification msg include information of the checked elements )

From what we have researched , it seems to be possible to implement it , using one of two different approaches :
1) Building a php extension to do the search and produce the information
2) Building some smart EZP templates that catch the input, produce data fetch , etc

Question is,

Do yo know anything that prevent us implementing it via approach #2 ?

We would prefer no to use php extension, but we aren't sure that we can do it only using EZP tpl programming

What do you recomend us ?

Thanks

Lazaro
http://www.mzbusiness.com

Paul Borgermans

Tuesday 12 October 2004 9:43:58 am

Hi Lazaro,

steps 1) and 2) can be done in templates I guees, the creation of an object behind the scene is best done in a php extension I think, unless it is not so much behind the scene( step 3 is basically then an edit page of an object which gets default fill-in parameters from step 1 and 2).

Maybe you could still get around the "edit" object by hiding all input variables and present a button "Do you want to save the result set"? You may ultimately combine step 2 and 3 with some DHTML ...

Not easy though

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Lazaro Ferreira

Tuesday 12 October 2004 10:47:34 am

Hi Paul,

I think I got it, but assuming that we only use EZP tpl programming, how can we customize (add step 2 result info) the message of the notification that should be triggered at step #3

Thanks

Lazaro
http://www.mzbusiness.com

Paul Borgermans

Tuesday 12 October 2004 10:59:21 am

Well ... for notifications use our contribution in datatypes :-)

http://ez.no/community/contributions/datatypes/personlist_datatype

With some clever .tpl programming, you can add the people who should receive a notification. In the personist datatype this operates outsite the usual notification system: ie, it sends out the emails upon publishing. We may change this in the future however to use the standard notification for users defined in ez publish (the personlist datatype also allows for emailing people NOT registered in an ezp site)

hth

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

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