Forums / Setup & design / content/collectedinfomail/feedback_form.tpl

content/collectedinfomail/feedback_form.tpl

Author Message

Betsy Gamrat

Wednesday 03 March 2010 7:52:56 pm

Sharing this template for a feedback form. Places the subject name in the subject, message text in the message, and assigns the sender value. Allows people to click 'Reply' to respond directly.

{set-block scope=root variable=$email_receiver}{$object.data_map.recipient.content}{/set-block}
{foreach $collection.attributes as $a}
{switch match=$a.contentclass_attribute_name}
{case match='Subject'}
{set-block scope=root variable=$subject}[Website] {$a.content|wash}{/set-block}
{/case}
{case match='Message'}
{attribute_result_gui view=info attribute=$a}
{/case}
{case match='Email'}
{set-block scope=root variable=$email_sender}{$a.content|wash}{/set-block}
{/case}
{/switch}
{/foreach}

Robin Muilwijk

Thursday 04 March 2010 12:18:52 pm

Thanks for sharing this code snippet Betsy :)

Regards, Robin

Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.

LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk