Webmastersite.net
Register Log In

Custom Attachment field and <IF>..
Having problems to use <IF> ...<OTHERWISE>

Comments on Custom Attachment field and <IF>..

Olympic
Beginner

Usergroup: Customer
Joined: Aug 30, 2006
Location: Greece

Total Topics: 1
Total Comments: 1
Olympic
Posted Aug 30, 2006 - 3:52 AM:

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

peumus
Forum Regular

Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile

Total Topics: 172
Total Comments: 462
peumus
Posted Aug 30, 2006 - 9:40 PM:

Try <IF {LINKATTACHPHOTOTITLE}>
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.