GistBirD
XT FILELIST WITH FILE NUMBER.
This xt filelist function numbers all files a folder.
Step 1: Create a folder named upload.
Step 2: Upload your files in the folder [upload]
Step 3: Copy and paste below script in the page where you want the files to be displayed.
Script
<!--parser:xtscript-->
# Filelist Template
var $folder=uploads
var $per_page=5
get_or_default __filelist_page;1
var $list_page=($__filelist_page-1)
var $page=($list_page*$per_page)
var $template= <li><img src="http://xtgem.com/images/icons/mimes/.file_type..png" alt="*" /> <a href=".file_url."><span>.file_name_base_parsed.</span></a> .file_mime. (.file_size.)</li>
var $template=call htmlspecialchars $val=$template
# Filelist
print <ol start="($page+1)"><xt:filelist sort_type="name" sort_dir="asc" folder="$folder" template="$template" per_page="$per_page" filter="*.*"/></ol>
<!--/parser:xtscript-->
Copy code