* Graham * NoNDeSCRiPT
You can use xt:include in the template of a xt:filelist provided that it is inside a xtscript
you can use the filter to load only files with a .txt extension
<!--parser:xtscript-->
var $list = <xt:filelist sort_type="name" sort_dir="asc" folder="/text" template="&lt;xt:include file=&quot;/text/.file_name.&quot; /&gt;;&lt;hr /&gt;" per_page="" filter="*.txt" />
print $list
<!--/parser:xtscript-->

Copy code
http://banana.madpath.com/textin
2018-02-12 23:08 (edited 2018-02-13 02:01 by Graham ) · (1)

Online: Guests: 1