The following is an example of the "notification_for_any" template.
{$ // required args: notif_code, teamspace; optional args: document, folder}
{$set title, [
100: "Topic Added to Forum",
101: "Reply Posted to Topic",
200: "Change in Document",
203: "Comment Added to Document",
204: "Content Changed in Document",
300: "Change in Folder",
301: "Document Added to Folder",
302: "Folder Added to Folder",
: "Unknown Notification Code {$notif_code}"
][notif_code]}
{$subject "Notification: {$title}"}
{$plain} Notification Event: {$title} Teamspace: {$teamspace.collabtitle} {$if document, '''Date: {$document.datecreated|date_format("EEE, dd MMM yyyy 'at' hh:mm a, z")} Document: {$document.name} In Folder: {$document.containers[1].name}'''} {$if folder, '''Date: {$folder.datecreated|date_format("EEE, dd MMM yyyy 'at' hh:mm a, z")} Folder: {$folder.name}'''}
{$html} <h3>Notification</h3> <h4>Event: {$title|html_encode}</h4> <h4>Teamspace: <a href="{$_app.url}?type=teamspace&id={$teamspace.id|url_encode}" target="_blank">{$teamspace.collabtitle|html_encode}</a></h4> {$if document, ''' <h4>Date: {$document.datecreated|date_format("EEE, dd MMM yyyy 'at' hh:mm a, z")}</h4> <h4>Document: {$document.name|html_encode}</h4> <h4>In Folder: {$document.containers[1].name|html_encode}</h4> '''} {$if folder, ''' <h4>Date: {$folder.datecreated|date_format("EEE, dd MMM yyyy 'at' hh:mm a, z")}</h4> <h4>Folder: {$folder.name|html_encode}</h4> '''}
{$if _group_apps, ''' {$loop cur, _other_apps} {$include _template_name, cur.value} {$endloop} '''}