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 2018-05-17 10:58:13

[email protected]
Guest
Registered: 2010-05-05
Posts: 8

email notifications: differentiate the last followup

Hello,
I 'd like to show, in my email notification for "add followup", the last followup in a different style. something like:

this is the last followup: *followup 1*
these are the others:
*followup 2*
*followup 3*
*followup 4*
*followup 5*

but I don't see any tag suitable for this purpose.
Is there a way to do it?

thanx

davide

Offline

#2 2018-05-17 11:20:22

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 3,890

Re: email notifications: differentiate the last followup

you can highligt first or last followup : with ##FOREACH last followups##


this is the last followup:
##FOREACH last followups##
##followup.description##
##ENDFOREACHfollowups##

these are the others:

*followup 2*
*followup 3*
*followup 4*
*followup 5*


Trouver la panne avant de réparer...
*GLPI 9.1.6+fusion9.1+1.1+behaviours1.5.0+reports+fields+appliances+pdf+badges+formcreator2.5.2 PHP7.0 Mariadb10
*GLPI 9.2.3(behaviours1.5.2+fusion9.2+1.0+applicatifs2.3.0+dashboard 0.8.9)hebergé sur serveur mutualisé.
*GLPI 9.3 BETA  en test (ubuntu 16.04 mariadb 10.2.4)

Offline

#3 2018-05-17 11:53:10

[email protected]
Guest
Registered: 2010-05-05
Posts: 8

Re: email notifications: differentiate the last followup

thank you , but, mmm...
so it should be...

##FOREACHfollowups##

##FOREACH last followups##
*set red for this line*
##ENDFOREACHfollowups##

##followup.description##
these are the others:
*followup 2*
*followup 3*
*followup 4*
*followup 5*
##ENDFOREACHfollowups##

but it does not work as every time it goes over the last followup thing it set the line in red even if is the first follow up..

davide

Offline

#4 2018-05-17 14:00:19

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 3,890

Re: email notifications: differentiate the last followup

so it should be...

this is the last followup :
##FOREACH last followups##
*set red for this line*
##ENDFOREACHfollowups##

these are all the followups
##FOREACHfollowups##

##followup.description##

##ENDFOREACHfollowups##


you should get :

this is the last followup :
*followup 5*

these are all the followups
*followup 1*
*followup 2*
*followup 3*
*followup 4*
*followup 5*

Note that the last foolowp is also in all followups list


Trouver la panne avant de réparer...
*GLPI 9.1.6+fusion9.1+1.1+behaviours1.5.0+reports+fields+appliances+pdf+badges+formcreator2.5.2 PHP7.0 Mariadb10
*GLPI 9.2.3(behaviours1.5.2+fusion9.2+1.0+applicatifs2.3.0+dashboard 0.8.9)hebergé sur serveur mutualisé.
*GLPI 9.3 BETA  en test (ubuntu 16.04 mariadb 10.2.4)

Offline

#5 2018-05-17 14:08:27

[email protected]
Guest
Registered: 2010-05-05
Posts: 8

Re: email notifications: differentiate the last followup

That's not what I wanted to have.
then the behavior is not exactly the same you've described as doing so we get:

this is the last followup :
*followup 5*
these are all the followups
*followup 5*
*followup 4*
*followup 3*
*followup 2*
*followup 1*

what I would like to get is:

this is the last followup :
*followup 5*
these are the previous followups
*followup 4*
*followup 3*
*followup 2*
*followup 1*

Offline

Board footer

Powered by FluxBB