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