Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Html Encoding of variables in booking email template View modes: 
User avatar
Member
Member
pat.newsome-avalara - 6/9/2011 3:30:18 PM
   
Html Encoding of variables in booking email template
Using the BookingEvent.Invitation

the fields that are fillout on the form are HTML content

The resulting email encoding the them so that the resulting email looks like this:

Location:
<p>The boat docks at the Gaylord pier:</p> /r/n Gaylord National Hotel South Dock/r/n 201 Waterfront St. /r/n National Harbor, MD<br /> 703.684.0580 <br /> <div> </div> <div>The dock is straight in front of the hotel’s atrium and the Cherry Blossom will dock at the very end of the pier, you can't miss it!<br /> <br /> Avalara looks forward to catching up with you at Sage Summit 2011!<br /> <div>**If you need to cancel your registration for any reason, please email <a href="mailto:marketing@avalara.com">marketing@avalara.com</a>**</div> <div><br /> </div> </div>


Site admin is set to send html emails. What needs to be done to have the engine correctly render this out without the extra encoding.

User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 6/9/2011 10:43:51 PM
   
RE:Html Encoding of variables in booking email template
Hello,

It's necessary to tell the system to not encode the macro strings using the encode directive set to false.

It can look like this:

<p><strong>Event: {%EventName|(encode)false%}</strong></p>
<p><em>{%EventSummary|(encode)false%}</em></p>
<p>{%EventDetails|(encode)false%}</p>
<p><strong>Location:</strong><br />
{%EventLocation|(encode)false%}</p>
<p><strong>Date:</strong><br />
{%EventDateString|(encode)false%}</p>


The code above can be added/edited via the 'Booking system - Event invitation' template in the Site Manager -> Development -> E-mail templates.

Best regards
Ondrej Vasil