* kapilover08 It is possible to creating a file list of subfolders? I want to create a file list and the content is subfolder not files.
2015-03-23 07:52 · (0)
* Graham * kapilover08 This is just a very basic script you will have to add your own customisation
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
2015-03-23 10:05 (edited 2015-03-23 10:26 by Graham ) · (0)

Online: Guests: 1