- ⌂ Publishing
Create or update a file with the given filename and data. A path to the file is returned.
#OUTPUT($filename, $data, $mode = 'write')
- filename - A simple filename or path. An absolute file path (starts with a slash) will create the file under the Publish Path. A relative file path will create the file under the Publication Procedure path. This default behavior can be customized with #PATHFROM and #PATHTYPE.
- data - Data may contain either text or binary information to output as the contents of the file.
- mode - Optional file write mode. Default is "write" or "w", which creates a file if one does not already exist, or replaces the file if it does exist. "append" or "a" creates a file if one does not exist, or appends to it if it exists. "overwrite" or "o" will force-overwrite an existing file.
<a href="#OUTPUT("test.txt","Test Text")">Link</a> #PATHBASE("/") <a href="#OUTPUT("test.txt","Test Text")">Link</a> #ENDPATHBASE
<a href="test.txt">Link</a> <a href="current/publish/path/test.txt">Link</a>