[ic] [if file] tag
Russ Mann
interchange-users@interchange.redhat.com
Wed Jan 30 22:12:01 2002
Hello,
I'm trying to use the [if file] tag to conditionally display images. It
works just fine on my search results page with this code:
[if-field display]
[if type="file" term="/www/store.khouse/htdocs/thumbnails/[item-field
display]"]
<td valign="top">
[page href="[item-code]" send=1]<img src="/thumbnails/[item-field display]"
border="0"></a>
</td>
[/if]
[/if-field]
Where it doesn't work is on the flypage.html, with this code:
[if-item-field image]
[if type="file" term="/www/store.khouse/htdocs/images/[item-field image]"]
<p><img border="0" src="[item-field image]" align="left">
[/if]
[/if-item-field]
Both fields contain just the filename such as "image.jpg".
However, the <img src> tag that comes out of the [item-field image] tag
comes out as /images/image.jpg instead of just image.jpg. Thinking that for
some reason the [item-field] tag just tacked on the leading /image URL, I
tried this to no avail also:
[if type="file" term="/www/store.khouse/htdocs/[item-field image]"]
In any case, does anyone know why this doesn't work?
Also, is there any significant load/time/processing/disk access to this
function that would make it unwise?
Thanks,
Russ