Webmastersite.net
Register Log In

Condition on custom attach file

Comments on Condition on custom attach file

babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Jul 13, 2007 - 3:36 AM:

I have a custom field : otherbannerattach

In my display links template I have

<IF LINKOTHERBANNERATTACH>
<img src="https://www.webmastersite.net/forums/download.php?id={LINKID}&field=otherbannerattach" ></IF>

However, an image box still shows. You can see this at http://www.spaintoday.co.uk/spanish-food-and-drink/

It is the link named Affil Test - you will see the attached image but above it is the empty img box, which is the otherbannerattach

----------

Edit: I deleted the custom field and added it again, which made the conditional work, but the link which has an image attached to that field - spanish cookery books - it does not show.




Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jul 13, 2007 - 12:17 PM:

Personally I'd do <IF {LINKOTHERBANNERATTACHFILENAME}> since I don't recall any specs on what using the field name by itself would do, though it shouldn't make a difference.
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Jul 14, 2007 - 6:33 AM:

Still can't get the image to show.

 http://www.spaintoday.co.uk/spanish-food-and-drink/

Cookery Books - I have temporarily added {LINKOTHERBANNERATTACHTITLE} ({LINKOTHERBANNERATTACHNAME}) to show that the link is definitely attached. I have checked that the image is indeed in the attachments folder. In order to show the image I have...
 
<IF {LINKOTHERBANNERATTACHNAME}>{LINKTITLE}
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jul 14, 2007 - 5:46 PM:

Your field is named otherbannerattach, but your url has field=linkotherbannerattach ... that needs to specify the field name, so field=otherbannerattach.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



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