Tuesday 11 October 2005 4:17:21 pm
J-A Eberhard: yes, the template you need to customise to make this work is templates/collectedinfomail/feedback_form.tpl I now have my feedback form sending to the contact person for our site 'from' the site user, also with the subject line set. $collection.attributes follows the order of the information in the feedback_form class, so for for me (and for the standard feedback_form class):
$collection.attributes.0.data_text = subject
$collection.attributes.1.data_text = message $collection.attributes.2.data_text = email As an example, here is my customised template:
{set-block scope=root variable=subject}New Enquiry: {$collection.attributes.0.data_text}{/set-block}
{set-block scope=root variable=email_receiver}{$object.data_map.recipient.content}{/set-block}
{set-block scope=global variable=email_sender}{$collection.attributes.2.data_text}{/set-block}
{* Set this to redirect to another node
{set-block scope=root variable=redirect_to_node_id}2{/set-block}
*}
Hi there, this is the automated Ban Terminator website
contact form here, with another happy enquiry for you to
follow up on. You should be able to reply to this email,
and it will go straight to them.
Here are the details they entered on the website:
----------------------------------------------------------
email address: {$collection.attributes.2.data_text}
subject: {$collection.attributes.0.data_text}
message:
{$collection.attributes.1.data_text}
finally, a very useful page from the old docs is here: http://ez.no/products/ez_publish_cms/documentation/customization/components/information_collection
http://carroll.org.uk
|