File
Overview
The File standard function displays a link to an attached file.
When editing a page you can attach files (images, executables, zip-files, etc.). The files are stored with and managed on the page for which they are attached. Displaying these files as images or download links is straightforward with some flexibility for the way they are displayed.
While the files are attached to a single page, they can also be referenced on one page from another.
Prototype
##File(string [name], string [linkText], bool {showSize})
Parameters
- Name: name [Required]
- Type: string
- Description: The name of the attached file.
- Name: linkText [Required]
- Type: string
- Description: The optional text for the file link.
- Name: showSize {Optional}
- Type: bool
- Default: false
- Description: Whether or not to show the file size beside the link.
Examples
##file(Some File.zip)
##File(Some File.zip, Download now!)
##File(Some File.zip, Download now!, true)
See Also
Function Calling Convention
Scope Function
Instruction Function
Standard Function
Related
Last modified by admin @ 12/20/2022 10:52:21 AM