* Graham * Waplocus
The include in the template is not converted again
You cant include a list that way
This works
Call your file Filelist.xt
var $list = <xt:filelist folder="/Zolo/SF" template="&lt;center&gt;&lt;div class=&quot;Content&quot;&gt;&lt;div align=&quot;center&quot;&gt;&lt;div class=&quot;NBg&quot;&gt;&lt;div id=&quot;NHead&quot;&gt;Name: .file_name_parsed.&lt;/div&gt;&lt;div id=&quot;NBody&quot;&gt;&lt;img src=&quot;/Zolo/Scripts/Images/Image.png&quot; style=&quot;max-width:100%&quot; /&gt;Download .file_name. Of Size .file_size. And Type .file_mime. From Waplocus&lt;/div&gt;&lt;div align=&quot;right&quot;&gt;&lt;a href=&quot;.file_url.&quot;&gt;&lt;xt:include file=&quot;/Zolo/Scripts/EXT/Download&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/center&gt;&lt;!--*--&gt;" per_page="10">
Copy code

Then include it like this
div class="Content">
<!--parser:xtscript-->
include /Zolo/Scripts/EXT/Filelist.xt
var $count=1
var $pos=0
@loop
var $pos=call strpos $haystack=@$list; $needle=<!--*-->; $offset=($pos+1);
if $count<5
var $count=($count+1)
goto @loop
endif
var $l1=call substr $val=@$list; $start=0 ; $length=$pos
var $l2=call substr $val=@$list; $start=$pos
var $pos=call strpos $haystack=$l2; $needle=<!--p-->;
var $l3=call substr $val=$l2; $start=$pos
var $l2=call substr $val=$l2; $start=0 ; $length=$pos
print <div> $l1 
<!--/parser:xtscript-->
<xt:include file="/EXT/Ad_Mid" />
<!--parser:xtscript-->
print $l2 
<!--/parser:xtscript-->
<xt:include file="/EXT/Ad_Mid" /> 
<!--parser:xtscript-->
print $l3 </div>
<!--/parser:xtscript-->
</div>

Copy code
@$variables are variables declared in an included file
2016-12-07 12:53 (edited 2016-12-07 16:49 by Graham ) · (0)

Online: Guests: 1