Ian - use the PHP to write the whole <img> to the page and not from within the <img> tag itself ..
if exist = <img src="file.jpg" />
else = <img src="blank.gif" />
if exist = <img src="file.jpg" />
else = <img src="blank.gif" />
<actinic:block php="true" > if(some stuff) { </actinic:block> HTML stuff <actinic:block php="true" > } else { </actinic:block> HTML stuff <actinic:block php="true" > } </actinic:block>
<actinic:block php="true" > $rsimage = "rs_" . basename(str_replace('\\','/', '<actinic:variable name="ProductImageFileName" encoding="perl" selectable="false" />')); if (file_exists($rsimage)) { echo "<img src=\"".$rsimage."\" border=\"0\" width=\"<actinic:variable name="ProductImageWidth" encoding="perl" selectable="false" />\" height=\"<actinic:variable name="ProductImageHeight" />\" alt=\"<actinic:variable name="SectionName" />\" />"; } </actinic:block>
Comment