I added a custom field for image. I can show the image at the link's details page using: <img border="0" src="attachments/{LINKATTACHPHOTONAME}"> but when a link dosen't has a photo appears a broken image block (that's normal).
When I tried to use conditionals, started my hell. I started with use of: ......... <IF {LINKATTACHPHOTO}> <img border="0" src="attachments/{LINKATTACHPHOTO1NAME}"> </IF> Nothing..... again the broken image. .......... <IF {LINKATTACHPHOTO}>
</IF> Gaves me output ... .......... <IF {LINKATTACHPHOTOKB} is greater than 0> <img border="0" src="attachments/{LINKATTACHPHOTO1NAME}"> </IF> Gaves me ....0?>"... ........... <IF {LINKATTACHPHOTONAME}> <img border="0" src="attachments/{LINKATTACHPHOTO1NAME}"> </IF> Nothing..... again the broken image. ......... Then I started using <OTHERWISE> ... What happened? I was getting both outputs included between: <IF> ..... I was getting this <OTHERWISE> ..... I was getting also this... </IF>
Is anybody who can say me how to display the custom field <LINKATTACHPHOTO> but only if the user has uploaded a photo?
Comments on Custom Attachment field and <IF>..
Beginner
Usergroup: Customer
Joined: Aug 30, 2006
Location: Greece
Total Topics: 1
Total Comments: 1
Hello,
I added a custom field for image. I can show the image at the link's details page using:
<img border="0" src="attachments/{LINKATTACHPHOTONAME}">
but when a link dosen't has a photo appears a broken image block (that's normal).
When I tried to use conditionals, started my hell. I started with use of:
.........
<IF {LINKATTACHPHOTO}>
<img border="0" src="attachments/{LINKATTACHPHOTO1NAME}">
</IF>
Nothing..... again the broken image.
..........
<IF {LINKATTACHPHOTO}>
</IF>
Gaves me output ...
..........
<IF {LINKATTACHPHOTOKB} is greater than 0>
<img border="0" src="attachments/{LINKATTACHPHOTO1NAME}">
</IF>
Gaves me ....0?>"...
...........
<IF {LINKATTACHPHOTONAME}>
<img border="0" src="attachments/{LINKATTACHPHOTO1NAME}">
</IF>
Nothing..... again the broken image.
.........
Then I started using <OTHERWISE> ...
What happened? I was getting both outputs included between:
<IF>
..... I was getting this
<OTHERWISE>
..... I was getting also this...
</IF>
Is anybody who can say me how to display the custom field <LINKATTACHPHOTO> but only if the user has uploaded a photo?
Thanks
Forum Regular
Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 172
Total Comments: 462
Try <IF {LINKATTACHPHOTOTITLE}>