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="<a href=".file_url.?__xt_download=1">.file_name_base_parsed.</a><br /><!--*-->" 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