Friday 01 December 2006 6:45:37 am
Hi, In a template I build on the fly links for htm pages like this : {def $url_archive=concat("http://www.site.com/infos/", $temp_year,"/",$moisarchive,"_", $temp_year, "/",$view_parameters.day, "_",$moisarchive,".htm"))}
<a href="{$url_archive}" target="_blank">{$url_archive}</a>
and I have this output : http://www.site.com/infos/2006/novembre_2006/12_novembre.htm But I want to test if this url is correct, before display it, because it's possible that the .htm document doesn't exist, so I must test it like than a test with the "file_exist" fonction of php... but I haven't found the good template operator =(
eZ Publish Freelance
web : http://www.webaxis.fr
|