webCOMAND

cTemplate Event Log Directives

There are a number of ways to log events that will appear in the results of a publish or other cTemplate processing output.

Example

#/ display message in the publish System Task if published
#CQL($Contacts,"FROM Contacts")
#LIST($Contacts)
    #NOTE("Iterating over contact with OID $OID")
    #IF(!$Title)
        #WARNING("Contact (OID $OID) missing job title.")
    #ELSEIF(!$DOB)
        #DEBUG("Contact does not have a DOB.")
    #ELSEIF(!$FirstName && !$LastName)
        #EXCEPTION("Contact does not have a name!")
    #ENDIF
<p>$FirstName $LastName</p>
#ENDLIST