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.

eZ debug

Timing: Jan 19 2025 20:08:15
Script start
Timing: Jan 19 2025 20:08:15
Module start 'layout'
Timing: Jan 19 2025 20:08:15
Module start 'content'
Timing: Jan 19 2025 20:08:16
Module end 'content'
Timing: Jan 19 2025 20:08:16
Script end

Main resources:

Total runtime0.8791 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0041 589.2891152.6406
Module start 'layout' 0.00410.0023 741.929739.4922
Module start 'content' 0.00640.8714 781.4219550.3203
Module end 'content' 0.87790.0012 1,331.742212.1094
Script end 0.8791  1,343.8516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.3389160.0002
Check MTime0.00120.1396160.0001
Mysql Total
Database connection0.00050.062210.0005
Mysqli_queries0.825293.8665600.0138
Looping result0.00060.0659580.0000
Template Total0.852997.020.4264
Template load0.00200.225420.0010
Template processing0.850996.787220.4254
Template load and register function0.00020.022810.0002
states
state_id_array0.00090.105110.0009
state_identifier_array0.00090.104120.0005
Override
Cache load0.00170.1949340.0001
Sytem overhead
Fetch class attribute can translate value0.00060.068820.0003
Fetch class attribute name0.00100.113850.0002
XML
Image XML parsing0.00070.077120.0003
class_abstraction
Instantiating content class attribute0.00000.001960.0000
General
dbfile0.00090.1021170.0001
String conversion0.00000.000540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs