Thursday 06 January 2011 2:41:15 am
I'm trying to modify the ezwebin feedback form to allow the user to select a recipient from a list of users derived from a fetch of the user folder. It seems to me that a way to do this would be to define the recipient in a global variable in /full/feedback_form.tpl and call that variable in /content/collectedinfomail/feedback.tpl - replace recipient.content in this code block with the variable {if and( is_set( $object.data_map.recipient ), $object.data_map.recipient.has_content )}
{set-block scope=root variable=email_receiver}{$object.data_map.recipient.content}{/set-block}
{/if}
So, fetching the users is easy, but how to set the variable on the form submission? Or is there a better way?
Paul Bolger
|