The new upgraded FileList XTfunction now allows you to define the folder to list and supports a custom output template. Or in other words now its really easy to make download sites in XTGem wapbuilder. Currently the file list code is supported via HTML code only so you will have to input the code.
Here is the general code:
Parameters used :
per_page – List the number of items listed per page.
sort_type – Sort Type (i.e name, updated)
sort_dir - Sorting order (asc or desc)
folder – relative folder location (eg: folder=”myfoldername/folder/” )
Template variables used are:
.file_url.
.file_name.
.file_name_parsed. (underlines converted to spaces)
.file_size.
.file_size_mb. (filesize in MB)
.file_size_kb. (filesize in KB)
.file_mime.
.file_type.
Note: The template is constructed in such a way that reserved characters MUST be converted to their html entity equivalent.
i.e
< = <
> = >
“ = "
& = &
Anyhow this function really makes creating download sites in XTGem easy..!
(c) 2011 WAPGuy Network | wapguy.com Back to Top