* Graham * Waplocus
Same idea except the marker goes in your custom paging
add <!--p--> to the start of the paging container
http://baretest.xtgem.com/ntest

# Paging container
if $page == 1
print <!--p--><div class="custom_paging">


Then extend the main script
<!--parser:xtscript-->
var $list=<xt:filelist folder="/images" template="&lt;a href=&quot;.file_url.?__xt_download=1&quot;&gt;.file_name_base_parsed.&lt;/a&gt;&lt;br /&gt;&lt;!--*--&gt;" per_page="10">
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
<!--/parser:xtscript-->

<div>{_$$l1|}<xt:include file="/file" />{_$$l2|}<xt:include file="/file" />{_$$l3|}</div>

Copy code
2016-12-06 00:16 (edited 2016-12-06 00:27 by Graham ) · (0)

Online: Guests: 1