File download template tags
From Open-Realty Wiki
Each tag in the template system looks like this {tag_name}.
The Following tags are available from the file download templates.
| Tag | Description |
| lang_variable | Displays the value for any defined lang variable. |
| file_download_url | The download URL for the file being displayed. This URL is to a download function in Open-Realty, this will help protect abuse of the file system such as people directly linking to files externally. Use this for creating the link to your files, for example: <a href="{file_download_url}">{file_filename}</a> |
| file_url | The direct download URL for the file being displayed. This URL is a direct link to the file on your server. If you use this download URL then you must remove the included .htaccess files in the files/listings and files/users folders. Be aware that this will allow users to link directly to your files from anywhere and may open your site for abuse by people uploading files to share with others at the expense of your bandwidth. Use this for creating the link to your files, for example: <a href="{file_url}">{file_filename}</a> |
| file_filename | Displays the filename of the file. |
| file_caption | Displays the caption of the file. |
| file_description | Displays the description of the file. |
| file_filesize | Displays the filesize of the file. |
| file_icon | Displays the url for the file icon for use in a img tag. For example:
<img src="{file_icon}" height="{file_icon_height}" width="{file_icon_width}" alt="{file_caption}" /> |
| file_icon_height | Displays the configured height for the file icons for use in a img tag. For example:
<img src="{file_icon}" height="{file_icon_height}" width="{file_icon_width}" alt="{file_caption}" /> |
| file_icon_width | Displays the configured width for the file icons for use in a img tag. For example:
<img src="{file_icon}" height="{file_icon_height}" width="{file_icon_width}" alt="{file_caption}" /> |
| Blocks | |
| Template tag Blocks are template tags that will have a starting and ending tag. Starting tags will be listed below. Blocks must be closed with {/TEMPLATE_TAG_block} The following template tags are block options: | |
| file_block | Block for the each file. The code inside this block will be repeated for each file being displayed. This block is required in order to display the files. |
| file_block_row repeat="#" | Block for the file row where rows will be used for displaying files in a horizontal layout. repeat="#" is the number of times to repeat the content inside the file_block before starting a new row. When closing this block do not include repeat in the closing tag, i.e. a proper closing would be: {/file_block_row} |
