The outer folder must only contain sub folders NOT files
The actual filelist is outside the script to prevent timeouts
Try not to use ( ) in the template as xtscript's parser may try to evaluate the contents
<!--parser:xtscript-->
get folder
if $folder
var $template= <a href=".file_url.">.file_name.</a><br />
else
var $template=<a href="?folder=.file_name.">.file_name.</a><br />
endif
var $template=call htmlspecialchars $val=$template
<!--/parser:xtscript-->
<xt:filelist sort_type="updated" sort_dir="asc" folder="/{_$folder|OUTER FOLDER NAME}" template="{_$$template|}" per_page="10" />
Copy code
get folder
if $folder
var $template= <a href=".file_url.">.file_name.</a><br />
else
var $template=<a href="?folder=.file_name.">.file_name.</a><br />
endif
var $template=call htmlspecialchars $val=$template
<!--/parser:xtscript-->
<xt:filelist sort_type="updated" sort_dir="asc" folder="/{_$folder|OUTER FOLDER NAME}" template="{_$$template|}" per_page="10" />
Copy code