You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2010-11-24 11:10:20

Jan.pieters
Member
Registered: 2009-07-27
Posts: 20

0.78 Email notification template syntax ?

Can anyone say where i can find the complete syntax that I can use to create the email  template ?
I know "##IFticket.storestatus=closed##" is possible , but I want to have the inverse function:
Is it "##IFticket.storestatus<>closed##"  OR "##IFticket.storestatus!=closed##" OR ... ??

Offline

#2 2010-11-24 16:12:32

sean.tapscott
Member
Registered: 2010-06-16
Posts: 303

Re: 0.78 Email notification template syntax ?

Sorry, I'm having the same problem.  I haven't seen much if any documentation on the email templates and their syntax.


Now using 0.78.1 on CentOS.

Offline

#3 2010-11-24 16:40:51

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: 0.78 Email notification template syntax ?

You only can use =


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#4 2010-11-24 16:44:28

sean.tapscott
Member
Registered: 2010-06-16
Posts: 303

Re: 0.78 Email notification template syntax ?

yeah, Jan, I used an Else statement to provide an opposite condition, it might work here for you.  But I had a lot of problems with my else statement, and I had to stop using it because it created a lot of strange behavior in the template.


Now using 0.78.1 on CentOS.

Offline

#5 2022-09-29 13:16:41

raulcruz
Member
Registered: 2022-09-29
Posts: 2

Re: 0.78 Email notification template syntax ?

I'd the same problem, about limitations of syntax options.

I just needed something simple like this:

##IFticket.numberoffollowups>1##
   ...
##ENDIFticket.numberoffollowups##

But finally, the only block that worked for me, after test was:

##IFticket.numberoffollowups=1##
##ENDIFticket.numberoffollowups##
##ELSEticket.numberoffollowups##
...
##ENDELSEticket.numberoffollowups##

(and assuming numberoffollowups=0 never compute my template)

roll:rolleyes:

Offline

Board footer

Powered by FluxBB