Hi All,
Obviously the ideal solution would be not to have broken images in the first place, but in my case, this wasn't always possible.
Following a healthy discussion, the following is a quick and dirty, but potentially risky from a Search Engine perspective:
add
inside the <IMG> tag of the offending image.
A better method is to use Actinic's build in PHP functions to check the presence of the file at creation time, thus:
Obviously the ideal solution would be not to have broken images in the first place, but in my case, this wasn't always possible.
Following a healthy discussion, the following is a quick and dirty, but potentially risky from a Search Engine perspective:
add
Code:
onerror="this.style.display = 'none'"
A better method is to use Actinic's build in PHP functions to check the presence of the file at creation time, thus:
Code:
<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