The purpose of this documentation is to inform and help you with anything related to Imager Gallery.
Sections: Main - Installation - Template script - What's new - Imager Resizer - FAQ - Contact - License
Template script information
- Template script is a simple way to modify the looks of Imager Gallery. It's currently only supported for file/folder info but more is to come.
- The template for file information is stored in file.tmpl and the themplate for folder information in folder.tmpl. They should both reside in "__settings/".
- Templates are built up using Template script codes (as defined below) and may also contain html formatting. There is a set of standard templates included with the script which also serves as examples for those who want to create their own.
Template script codes (file.tmpl)
- [Name] - Returns the filename
- [NameLink] - Returns the filename and links to the fullview of the image
- [SizeBytes] - Returns the filsize in bytes
- [SizeKBytes] - Returns the filsize in kilobytes (two decimals)
- [SizeMBytes] - Returns the filsize in megabytes (two decimals)
- [D] [/D] - Description zone. Text between these tags will only be shown if a description file exists.
- [Description] - Returns the filedescription (from filename.desc)
- [A] [/A] - Administrator zone. Text between these tags will only be shown if the user has logged on.
- [Edit]Text[/Edit] - Returns Text as a link to edit the files description.
- [Remove]Text[/Remove] - Returns Text as a link to remove the file.
- [Rename]Text[/Rename] - Returns Text as a link to rename the file.
Template script codes (folder.tmpl)
- [Name] - Returns the foldername
- [NameLink] - Returns the foldername and links to the index of the folder
- [ImageCount] - Returns the number of images in the folder
- [FolderCount] - Returns the number of subfolders in the folder
- [D] [/D] - Description zone. Text between these tags will only be shown if a description file exists.
- [Description] - Returns the filedescription (from foldername.desc)
- [A] [/A] - Administrator zone. Text between these tags will only be shown if the user has logged on.
- [Edit]Text[/Edit] - Returns Text as a link to edit the folders description.
- [Remove]Text[/Remove] - Returns Text as a link to remove the folders.
- [Rename]Text[/Rename] - Returns Text as a link to rename the folders.