[Radiant] Checking for an asset existence
Brian Sam-Bodden
bsbodden at integrallis.com
Thu Dec 14 08:33:47 CST 2006
Fellow Radiant users:
I have a site for which I have a "highlights" image for certain pages.
Sort of a branding/marketing image. I've put those images in a
/highlights directory and named them after the page they belong in, e.g.
home ==> home-highlight.jpg. Of course, for the pages that don't have an
image I get the always unpleasant image placeholder icon in Safari and
IE. If there a easy way to use something like a <if-asset-exists/> or
<if-file-exists/> type of tag? So that I can only include that <img/> tag
for those pages that have one. I can do something with Javascript but
that's just not pretty. Any ideas?
Thanks,
Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.radiantcms.org/pipermail/radiant/attachments/20061214/8cdc8a43/attachment.html
More information about the Radiant
mailing list