* Graham * Waplocus
If your filelist is assigned to a xtscript variable and then "printed" you can use xtinclude and most other xt:functions in the template because xtscript changes the parsing order
<!--parser:xtscript-->
var $list = <xt:filelist folder="" template="" filter="" per_page="" />
print $list
<!--/parser:xtscript-->

you need to give your description file the same name as the file without any extension
and the same goes for images
you can then use
<img src="/thumbs/.file_name_base..png" />
and
<xt:include file="/description/.file_name_base." />
in your template
The template MUST be all on 1 line or it will not work
it then has to be converted through htmlspecialchars before you can use it in the filelist
http://syntax.xtgem.com/manual/xtgem/default?func=xt_filelist#convert
2016-11-22 08:06 (edited 2016-11-22 08:27 by Graham ) · (0)

Online: Guests: 2