[ic] [if file]
New Media E.M.S.
ic_users at newmediaems.com
Fri May 28 17:25:08 EDT 2004
At 12:03 PM 5/28/2004, you wrote:
>I am using Interchange 5.0.0 and I have been stuck on this problem for the
>past two days.
>I am attempting to make a category banner show up on every category page,
>ie: hammer's banner for the hammer category, etc etc.
>I have searched considerably and have come across some interesting
>information but I have yet to make any example work or understand exactly
>what these people are doing.
>What I am attempting to do is take the mv_searchspec, add a .jpg to the
>end, check if that file exists, then display it. If the file doesn't exist
>(ie: user types something into the search box) then it'll display a
>default banner image.
>I have got this working for thumbnails in the results listings, however I
>cannot get this to work using mv_searchspec. This is the code I am using:
>[if file upload/[value-extended name="mv_searchspec"].jpg]
> <img src="blueyellow/[value-extended name="mv_searchspec"].jpg"
> border="0" width="600">
>now, if i replace the [value-extended name="mv_searchspec"] with the
>actual image name in the IF condition, it will return TRUE and post the
>image. If I leave it as it is above, then it ALWAYS defaults to FALSE.
>When I print out the variable on the page, it prints out correctly and has
>no extra spaces or any other characters that I can see that would foul up
>It seems as if the [if file] condition refuses to understand that variable
>when its passed to it.
>What am I doing wrong? I am stumped and need help! Thanks in advance!
[if type=file term="upload/[value-extended name="mv_searchspec"].jpg"]
- or -
[if type=file compare="upload/[value-extended name="mv_searchspec"].jpg"]
...one of these two should work, I just don't recall which is the correct
syntax. I think it is the first one.
New Media E.M.S. Technology Solutions for Business
11630 Fair Oaks Blvd., #250 eCommerce | Consulting | Hosting
Fair Oaks, CA 95628 edl at newmediaems.com
(916) 961-0446 http://www.newmediaems.com
(866) 519-4680 Toll-Free (916) 961-0447 Fax
More information about the interchange-users