Webmastersite.net
Register Log In

Check for attachments
doesn't work here

Comments on Check for attachments

chris
Member

Usergroup: Customer
Joined: May 04, 2008
Location: Liège, BELGIUM

Total Topics: 13
Total Comments: 43
chris
Posted Jun 15, 2008 - 3:32 PM:

I use the following condition syntax in detailcomments.tpl:


<IF {LINKHASATTACHMENT}>
YES
<OTHERWISE>
NO
</IF>


The result is always "YES" no matter if I have an attachment or not.

What am I doing wrong?
chris
Member

Usergroup: Customer
Joined: May 04, 2008
Location: Liège, BELGIUM

Total Topics: 13
Total Comments: 43
chris
Posted Jun 15, 2008 - 4:01 PM:

It worked with the following code:


<IF {LINKNUMBEROFATTACHMENTS} is greater than 0>
YES
<OTHERWISE>
NO
</IF>
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Jun 27, 2008 - 1:17 PM:

Documentation issue, that function isn't listed but is mentioned in an example. Updating doc.
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.