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 2020-09-09 11:30:56

max_it
Member
Registered: 2020-09-08
Posts: 13

email template customisation

hi
is that possible to customize the first line of the reply mail?
I mean

=-=-=-= To reply by e-mail write upper this line =-=-=-=


Besides, is that possible put the followups at the beginning of the mail reply, not under?
Most users probably won't scroll the entire mail...

Thanks.

Offline

#2 2020-09-09 13:38:43

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 6,146

Re: email template customisation

you can change this line until you fork glpi's core

using followup templates you can  display followup at the top.

I use customized templates for followups notification : I only display last followup content


Trouver la panne avant de réparer...
GLPI10.0.10 (ubuntu 22.04 PHP8.1  Mariadb10.6 ) plugins : comportements 2.7.2 reports 1.16.0 formcreator 2.13.8, datainjection 2.13.4 fields 1.21.6

Offline

#3 2020-09-10 09:37:31

max_it
Member
Registered: 2020-09-08
Posts: 13

Re: email template customisation

LaDenrée wrote:

you can change this line until you fork glpi's core

using followup templates you can  display followup at the top.

I use customized templates for followups notification : I only display last followup content

Ok, it could be fantastic to show only the last one.

I've try merely to move this code up in the template translation, but the result was that that the follow-up disappear...

##FOREACHfollowups##

[##followup.date##] ##lang.followup.isprivate## : ##followup.isprivate##
##lang.followup.author## ##followup.author##
##lang.followup.description## ##followup.description##
##lang.followup.date## ##followup.date##
##ENDFOREACHfollowups##

##lang.ticket.numberoftasks## : ##ticket.numberoftasks##
##FOREACHtasks##

[##task.date##] ##lang.task.isprivate## : ##task.isprivate##
##lang.task.author## ##task.author##
##lang.task.description## ##task.description##
##lang.task.time## ##task.time##
##ENDFOREACHtasks##

Where can I find some alternative template or information to do this?
Perhaps should I change ##FOREACHfollowups##  to ##FOREACH LAST enumeration## ##ENDFOREACH enumeration## ?

I've try like this below, but with no luck

##FOREACH LAST enumeration##

[##followup.date##] Privato : ##followup.isprivate##
Autore ##followup.author##
Descrizione ##followup.description##
Data di apertura ##followup.date##
##ENDFOREACH enumeration##

The box simply isn't compiled,


Thanks.

Last edited by max_it (2020-09-10 10:23:21)

Offline

#4 2020-09-10 09:54:13

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 6,146

Re: email template customisation

try this :

##FOREACH last followups####followup.author####ENDFOREACHfollowups## added soem info about ticket ##ticket.id##.

 
##FOREACH last followups##
##followup.description##
##ENDFOREACHfollowups##

Trouver la panne avant de réparer...
GLPI10.0.10 (ubuntu 22.04 PHP8.1  Mariadb10.6 ) plugins : comportements 2.7.2 reports 1.16.0 formcreator 2.13.8, datainjection 2.13.4 fields 1.21.6

Offline

#5 2020-09-10 15:27:26

max_it
Member
Registered: 2020-09-08
Posts: 13

Re: email template customisation

It works. Thank you

Offline

#6 2020-11-26 16:38:28

max_it
Member
Registered: 2020-09-08
Posts: 13

Re: email template customisation

is that possible to avoid the first reply, status 1=new ticket?
Thx

Offline

Board footer

Powered by FluxBB