Graham
See
http://syntax.xtgem.com/gallery
The script creates a paged display of css resized thumbnails
when images are clicked the landing page shows the image plus a description and the files name type file size and date with open and download buttons and a xtgem poll for rating the image
As the actual filelist is not in the xtscript the problem with timeouts for large folders should not occur
XTMEDIA
Graham For Xtscript galery#
how to keep the file name is in the title page? Example: Filename= "gambar_punyaku.jpg" and in the page title into "image punyaku.jpg"
onedc
XTMEDIA What is that? a file name base parsed (a function to change _ and + to space or you want to change the word gambar to image? i think you can do that by using string replace xtscript..
Graham
XTMEDIA use {_$listfile|} in your pages <title> as that holds the files name
ie:
<title>{_$listfile|DEFAULT TITLE HERE}</title>
Copy code
or to do exactly what you asked use an xtscript with a str_ireplace as onedc says
<!--parser:xtscript-->
get_or_default listfile;DEFAULT TITLE
var $spc=call chr $val=32
var $title=call str_ireplace $subject=$listfile;$search=gambar_;replace= image$spc
<!--/parser:xtscript-->
<title>{_$$title|}</title>
Copy code
XTMEDIA
Graham Sorry mr.graham there is a bit of a mistake when writing, exp:
file name is= xtgem_images.jpg
<title> {_$listfile|Filename}</title>
will definitely display
the
<title>xtgem_images.jpg</title>
if the title of the page in order to be
<title> xtgem images.jpg </title>
was how to display it?, Thank you.
Graham
XTMEDIA Same xtscript code
change
$search=gambar_;replace= image$spc
to
$search=_;replace=$spc
you need the $spc var trick as otherwise you cannot define a space for replace
XTMEDIA
Graham ok, thanks .. i will try it first
Aash
What are the sort types available?
E.g. name, date, last_modified etc.
XTMEDIA
Aash Your edit in code xtscript
var $sort_type=
name
var $sort_dir=
asc
name is sortir by name you edit to
date
simple xtscript edited
my galery