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 2023-08-18 22:05:01

sIBajHYG
Member
From: Mission [KS]
Registered: 2023-08-18
Posts: 75

Editing template for email notifications

Good afternoon. Give advice, please.
I have fully studied and tested all possible options from this manual!

this is the link to the guide   >>>>>> https:/    /glpi-user-documentation.readthedocs.io/fr/latest/modules/configuration/notifications/template_example.html


1

whatever I try - all my answers are always placed in one cell of the table, the code for which is written in the "Email HTML Body" field for each template, as per the guide.
2

This is how the template is set up:
3

	
##ticket.authors## (##FOREACHauthors## ##author.title## ##ENDFOREACHauthors##)
##ticket.creationdate## ##FOREACHauthors## ##author.location## ##ENDFOREACHauthors##

##FOREACHtimelineitems##      ##timelineitems.author## - ##timelineitems.date####timelineitems.description####ENDFOREACHtimelineitems##

##ticket.authors## - ##ticket.creationdate## ##ticket.description##

Link to ticket

Please tell me how to write the code or what needs to be done so that each follow-up, or task, or solution or closing of a ticket, is in a new cell of the table?

Last edited by sIBajHYG (2023-08-21 22:32:43)


Linux ubuntu-22.04.2-live-server-amd64, PHP 8.1.2, Apache 2.4.52, MariaDB 10.6.12, GLPI 10.0.15.
GLPI Inventory 1.3.5, PHP SAML 1.3.0,  Oauth IMAP 1.4.3, Additional Fields, 1.21.8,Ticket Cleaner.

Offline

#2 2023-08-24 21:25:47

sIBajHYG
Member
From: Mission [KS]
Registered: 2023-08-18
Posts: 75

Re: Editing template for email notifications

please share some nice code for pretty notification template ^^

Last edited by sIBajHYG (2023-08-24 21:27:07)


Linux ubuntu-22.04.2-live-server-amd64, PHP 8.1.2, Apache 2.4.52, MariaDB 10.6.12, GLPI 10.0.15.
GLPI Inventory 1.3.5, PHP SAML 1.3.0,  Oauth IMAP 1.4.3, Additional Fields, 1.21.8,Ticket Cleaner.

Offline

#3 2024-06-25 13:41:52

mainz110
Member
Registered: 2024-06-11
Posts: 17

Re: Editing template for email notifications

The documentation link you shared is a really great starting point. You can easily modify the HTML code from the documentation to leverage tables (<table><tr><td> etc) instead of the paragraph tag (<p>)

(adding this bit in case it helps someone else updating their templates as well wink)

Offline

Board footer

Powered by FluxBB