Login
·
Signup
Home
»
XtGem
»
Coding help
»
need hlp
» View post
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="<center><div class="Content"><div align="center"><div class="NBg"><div id="NHead">Name: .file_name_parsed.</div><div id="NBody"><img src="/Zolo/Scripts/Images/Image.png" style="max-width:100%" />Download .file_name. Of Size .file_size. And Type .file_mime. From Waplocus</div><div align="right"><a href=".file_url."><xt:include file="/Zolo/Scripts/EXT/Download" /></a></div></div></div></div></center><!--*-->" per_page="10">
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>
@$variables are variables declared in an included file
#
2016-12-07 12:53 (edited 2016-12-07 16:49 by
Graham
) ·
(0)
Home
»
XtGem
»
Coding help
»
need hlp
» View post
Online: Guests: 1
Log in