[ic] [if file]

anasazi anasazi at graffiti.net
Fri May 28 15:03:04 EDT 2004


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">
[else]
default condition
[/else]
[/if]

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 the condition.

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!
-- 
_______________________________________________
Graffiti.net free e-mail @ www.graffiti.net
Check out our value-added Premium features, such as an extra 20MB for just US$9.95 per year!

Powered by Outblaze


More information about the interchange-users mailing list