HTML email notifications with conditional attributes

Contains tips for configurators working with Aware IM
Post Reply
tford
Posts: 4238
Joined: Sat Mar 10, 2007 6:44 pm

HTML email notifications with conditional attributes

Post by tford »

Yes, it IS possible to have HTML emails with conditional attributes.

Following is a sample of an HTML Document Template used in an email notification.

Note this is using Build 1900.

<b>Game date:</b> <<GameAssignments.TeamTextSC>> - <<GameAssignments.EventDateSC@EEEE, MMM d, yyyy - h:mm a>>
<br><br>
<<IF GameAssignments.GameOverSC='Yes' AND GameAssignments.GameTypeSC='Dual' THEN SHOW SECTION_START>><b>Result:</b> <<GameAssignments.TeamTextSC>> --> LW: <<GameAssignments.Game.OurScore>> <<GameAssignments.OpponentSC>>: <<GameAssignments.Game.TheirScore>>
<br><br>
<b>Win/Loss:</b> <<GameAssignments.Game.WinLoss>><<SECTION_END>>
<br><br>
<<IF GameAssignments.GameOverSC='Yes' AND GameAssignments.GameTypeSC='Invitational' AND (GameAssignments.Score_Inv_Place<>'Postponed' OR GameAssignments.Score_Inv_Place<>'Cancelled') THEN SHOW SECTION_START>><b>Invitational Place:</b> <<GameAssignments.Score_Inv_Place>><<SECTION_END>>
<br>
<<IF (GameAssignments.Score_Inv_Place='Postponed' OR GameAssignments.Score_Inv_Place='Cancelled') THEN SHOW SECTION_START>><b>Postponed / Cancelled:</b> <<GameAssignments.Score_Inv_Place>><<SECTION_END>>
<br><br>
<<IF (GameAssignments.SportSC='Baseball' OR GameAssignments.SportSC='Football') THEN SHOW SECTION_START>><b>Show Game Cast link?:</b> <<GameAssignments.GameCastLinkShow>>
<br>
<b>Game Cast link:</b> <<GameAssignments.GameCastLink>><<SECTION_END>>
<br><br>
<b>Abstract:</b> <<GameAssignments.Game.Abstract>>
<br><br>
<b>Score input by:</b> <<LoggedInSystemUser.Name>> on <<CURRENT_TIMESTAMP@EEEE, MMM d, yyyy - h:mm a>>
<br><br>
<b>Update link:</b> <a href="<<GameAssignments.Edit_Game_URL>>">Edit this game</a>
<br><br>
<b>Update link MOBILE:</b> <a href="<<GameAssignments.Edit_Game_URL_MOBILE>>">Edit this game on phone</a>
<br><br>
<b>Tweet edit link:</b> <a href="<<GameAssignments.Edit_Tweet_URL>>">Tweet this game</a>
<br><br>
<b>Schedule / Results Page:</b> <a href="<<GameAssignments.Team_ScheduleSC>>"><<GameAssignments.TeamTextSC>></a>
<br><br>
<u><i><b>Assignments:</b></i></u>
<br><br>
<b>Score / Abstract:</b> <<GameAssignments.Assigned_ScoreAbstracts>>
<br><br>
<b>Article:</b> <<GameAssignments.Assigned_Articles>>
<br><br>
<b>Photos:</b> <<GameAssignments.Assigned_Photographers>>
<br>
== END ==
Tom - V8.8 build 3137 - MySql / PostGres
Rennur
Posts: 1191
Joined: Thu Mar 01, 2012 5:13 am
Location: Sydney, Australia

Post by Rennur »

Hi Tom and All,

The HTML Document template's conditional support was rolled out with the release of version 5.9.

This was a big issue for us since we are manly focusing on using the HTML documents instead of the report designer.

Cheers
Post Reply