Forums / Setup & design / How-to: modify feedback_form as ez.no's contact form?
Quynh Nguyen
Tuesday 24 February 2009 10:49:45 am
I did a search in forum and try to understand what contact form in ez.no really do... but too hard for a newbie like me.
I think the mainly different is the drop list in head. To do the same I should do:
- modify the feedback_form class: add one more attribute type Option.- modify the template to show the new attribute.
I don't know how to add more option values in the new attribute and the corelative email for each option value.
I don't know how to change the corelative email with the selected option in the list. Is there any change in php code to send email to desired email? Or is there any new datatype must be install (option type) to have the similar contact page in ez.no?
Thank so much!
Greg McAvoy-Jensen
Tuesday 24 February 2009 10:55:29 am
Quynh,
May I suggest Paul Wilson's excellent article on the subject?
http://ez.no/developer/articles/how_to_create_ez_publish_forms
Granite Horizon, Certified Developer of eZ Publish Web Solutions Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg Blog: http://granitehorizon.com/blog
Wednesday 25 February 2009 6:22:13 pm
Thanks for your comment!
I read this article and I think that it is not easy to modify the feedback_form, although most of us think that it is easy.
- modify class is easy... and maybe install more datatype to create the select control. - add more recipient emails for each value in the select control, maybe in *.ini or in the class definition. - override template to show more control after modify the feedback_form class.- extends class php to check the selected value from select control and set approximately recipient email to receive collected information. But I don't know how to tell eZ Publish will use new class to process the $_POST data.
Am I right? Who had done it? Please show more detail for newbies and me to follow!