* Waplocus * Graham Please graham the variable is gotten from a url.... e.g http://site.com/apps/individualdownloadpage?Name=Java_uc_min.jar....
in the individualdownloadpage i want to filter the file using the variable value in the url
<!--parser:xtscript-->
get_or_default Name;
var $list= <xt:filelist sort_type="name" sort_dir="" folder="/Images/Backgrounds/Navigations/NS_F" template=".file_name_parsed." per_page="1" filter="$Name"/>
print $list
<!--/parser:xtscript-->

Copy code
....
when there is no value in the "Name" variable in the url How can i print "No file name was found" in xtscript above... thanks.
2017-11-25 00:13 · (0)

Online: Guests: 1