* Graham * Waplocus possibly by a couple of microseconds at most
2017-11-25 16:04 (edited 2017-11-25 16:06 by Graham ) · (0)
* Waplocus * Graham In a filelist how can 1 print out the last modified of the files?.
2017-12-07 14:46 · (0)
* Graham * Waplocus
.file_date.
The files date
.file_time.
The files time
.file_datetime.
The files date and time
These show the last update time to the file
2017-12-07 18:02 (edited 2017-12-07 18:04 by Graham ) · (0)
* Waplocus * Graham Sir plz y is the below code not working?.
<!--parser:xtscript-->
# Path Name #
var $spc=call chr $val=32
var $path=<xt:url type="path">
var $pos = call strrpos $haystack=$path; $needle=/
var $name = call substr $val=$path; $start=($pos+1)
var $name = call str_replace $subject=$name; $search=_ ; $replace=$spc
# PATH TO FILES #
var $xtps= <xt:include file="
var $xtpe=" />
var $path= <xt:url type="path" >
var $lastslash = call strrpos $haystack=$path;$needle=/
var $trimmedpath = call substr $val=$path;$start=0;$length=$lastslash
# FILE LIST # 
var $list= <xt:filelist sort_type="updated" sort_dir="asc" folder="$xtps$trimmedpath$xtpe" template="" filter="$name" per_page="1" />
print $list
<!--/parser:xtscript-->

Copy code
2017-12-08 13:52 · (0)
* Waplocus * Waplocus Please graham i tried this but it's not working... the variable is set on a variable in an xtscript above the below code on the same page...
<!--parser:xtscript--> 
get_or_default RRFPath1;
get_or_default RRFPath2;
var $inc=xt:include file="$RRFPath1/$RRFPath2/EXT/RRF"
print <$inc>
<!--/parser:xtscript-->

Copy code
2017-12-11 08:09 · (0)
* Waplocus * Waplocus Please graham, this code is not working...
<!--parser:xtscript--> 
var $Path1=Images
var $Path2=Backgrounds
var $inc=xt:include file="/$Path1/$Path2/EXT/1.txt
var $last=<$inc" />
print $last
<!--/parser:xtscript-->

Copy code
2017-12-13 05:39 (edited 2017-12-14 09:27 by Waplocus ) · (0)
* Waplocus * Waplocus No help?.
2017-12-13 20:14 · (0)
* Graham * Waplocus you cannot assign a include like that to a variable
2017-12-14 13:59 · (0)
* Graham * Waplocus if the variable is a xtscript one set on the same page you do not need to use 'get'
the 'get' functions are for variables passed by url or forms all your get functions are doing is actually blanking the variables
2017-12-14 14:08 · (0)
* Graham * Waplocus you are trying to use a include as the path to a filelist apart from other issues that stop it working what file are you including ? as all you have is the folder name in $trimmedpath
2017-12-14 14:31 · (0)

Online: Guests: 1