To your feedback class add new attribute Recipient (Identifier: recipient) [Email datatype] which isn`t information collector. Now for every object (Feedback form) you can set Recipient e-mail.
Ok.Thanks for your answer.
One more detail. I did add this attribute, but where should i set Recipient e-mail: in template, ini files, some where in kernel code, lib? (seems like this attribute doesn't have default value).
I added the attribute to the class, added to my siteaccess design override/templates/content/collectinfomail/ form.tpl and feedback_form.tpl but it still sends the email to the address specified in the ini file.
Do i have to add any hidden field to the template?
Any idea? This is the code i'm using to generate the code:
Here you can find usefull information i think. http://ez.no/ez_publish/documentation/customization/components/information_collection
Then look into part 6 in this page- "<b>Create the override template to send the emails</b>"
In this template look here:
{* Use this line to specify the e-mail in the template, can read this from the object to make it dynamic pr form *}
{set-block scope=root variable=email_receiver}{$object.data_map.reciver.content}{/set-block}
So, {$object.data_map.<b>reciver</b>.content} will be your recipient. <b>reciver</b>-name of attribute that you have to add into the class,
You must be logged in to post messages in this topic!