Webmastersite.net
Register Log In

custom cat attach

Comments on custom cat attach

babrees
Expert

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

Total Topics: 391
Total Comments: 1303
babrees
Posted Apr 05, 2008 - 2:53 AM:

I have a cat field: photoattach

Within the subcategory, begin regular I have the following conditional:

<IF {CATPHOTOATTACH}>
<a href="{CATURL}"><img src="download.php?catid={CATID}&field=photoattach" title="{CATNAME}"></a><br ><a href="{CATURL}">{CATNAME}</a><br >
({CATNUMLINKS} Items) {CATHASNEW} {CATADMIN}
<OTHERWISE>
<img src="{IMAGESURL}/folder.gif" title="{CATNAME}"> <a href="{CATURL}">{CATNAME}</a> ({CATNUMLINKS} Items) {CATHASNEW} {CATADMIN} </IF>


However, even if I do not have an image attached it seems to believe there is as it still only does the first part (ie tries to show the catphotoattach image) and ignores the OTHERWISE


Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Apr 07, 2008 - 2:23 PM:

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



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.