webCOMAND

cTemplate Publishing Directives

There are a number of ways to affect publishing in cTemplate.

Example

#**
 * Link to a text file created on the fly and a web page published
 * by the "WebPage" Publication Procedure.  Both links will use the
 * "absolute" URL form (ie. https://website/path/test.txt), instead
 * of the default "relative" form (ie. just text.txt).
 *# 
#PATHTYPE(Absolute)
    <a href="#OUTPUT('test.txt', 'This is a test')">Test File</a>
    <a href="#LINK(WebPage, OID=123)"></a>
#ENDPATHTYPE