On Friday 11 February 2011 14:06:53 Denis Linvinus wrote: > 2011/2/11 Nicolas Michaux <nicolas-glpi-...@michaux.homelinux.org> > > > On Friday 11 February 2011 13:37:35 Denis Linvinus wrote: > > > I found little bug, > > > > Hi Denis, > > > > > imposible to use '0' as condition parameter > > > > It seems you are doing same template as mine :-) > > > > > following template don't work > > > > > > ##IFticket.numberoftasks=0## --- ##ENDIFticket.numberoftasks## > > > > > > ##ELSEticket.numberoftasks## ##lang.ticket.numberoftasks## : > > > ##ticket.numberoftasks## ##ENDELSEticket.numberoftasks## > > > > If found a workaround by using this template : > better if template will support both styles It works with both styles, but your patch is easier than adding a space... > I think GLPI should contain two preconfigured template schemes, > compact and full I think it exists in GLPI : Tickets and Tickets (Simple). You can configure wich one you use for each type of notifications.
> I and my users don't want to see all properties of ticket until it > close I prefer seeing all properties in each email, but only at end of email. > Also little misunderstanding, add task after several followups :), > users don't want to scroll down to see what's new with ticket My template first shows what's changed since last email, then displays an history of the ticket (I posted a patch on the forum to allow multiple foreachs) : (this is a stripped version of my template without html formatting) ##IFticket.action=Nouveau ticket## blah blah blah ##ENDIFticket.action## ##IFticket.action=Modification Ticket## Modification du ticket : ##FOREACH LAST log## Le champ ##ticket.log.field## a été modifié par ##ticket.log.user## : ##ticket.log.content## ##ENDFOREACHlog## ##ENDIFticket.action## ##IFticket.action=Nouveau suivi pour ce ticket## Un nouveau suivi pour ce ticket a été ajouté ##FOREACH LAST followups## Le ##followup.date##, ##followup.author## a écrit: ##followup.description## ##ENDFOREACHfollowups## ##ENDIFticket.action## ##IFticket.action=Suppression suivi## Un suivi pour ce ticket a été supprimé ##ENDIFticket.action## ##IFticket.action=Nouvelle tâche## Une nouvelle tâche pour ce ticket a été ajoutée ##FOREACH LAST tasks## Le ##task.date##, ##task.author## a écrit: ##task.description## ##lang.task.time## : ##task.time## ##ENDFOREACHtasks## ##ENDIFticket.action## ##IFticket.action=Suppression d'une tâche## Une tâche pour ce ticket a été suprimmée ##ENDIFticket.action## ##IFticket.action=Ticket résolu## Votre ticket a été marqué comme ##ticket.solution.type## le ##ticket.solvedate## : ##ticket.solution.description## Sans action de votre part, le ticket sera automatiquement fermé dans ##ticket.autoclose##. Si vous désirez approuver ou rejeter cette solution, vous pouvez vous rendre à cette adresse : ##ticket.urlapprove## ##ENDIFticket.action## ##IFticket.action=Clôture du ticket## Votre ticket a été clôturé : ##FOREACH LAST followups## Le ##followup.date##, ##followup.author## a écrit: ##followup.description## ##ENDFOREACHfollowups## ##ENDIFticket.action## ##IFticket.numberoffollowups= 0####ENDIFticket.numberoffollowups## ##ELSEticket.numberoffollowups## Historique des suivis (##ticket.numberoffollowups##) ##FOREACHfollowups## Le ##followup.date##, ##followup.author## a écrit: ##followup.description## ##ENDFOREACHfollowups## ##ENDELSEticket.numberoffollowups## ##IFticket.numberoftasks= 0####ENDIFticket.numberoftasks## ##ELSEticket.numberoftasks## Historique des tâches (##ticket.numberoftasks##) ##FOREACHtasks## Le ##task.date##, ##task.author## a écrit: ##task.description## ##lang.task.time## : ##task.time## ##ENDFOREACHtasks## ##ENDELSEticket.numberoftasks## Aperçu du ticket ##lang.ticket.id## : ##ticket.id## ##lang.ticket.url## : ##ticket.url## ##lang.ticket.category##: ##IFticket.category####ticket.category####ENDIFticket.category## ##ELSEticket.category####lang.ticket.nocategoryassigned####ENDELSEticket.category## ##lang.ticket.requesttype##: ##ticket.requesttype## ##lang.ticket.status## : ##ticket.status## ##lang.ticket.priority## : ##ticket.priority## ##lang.ticket.author.name##: ##ticket.author.name## ##lang.ticket.assigntogroup##:##IFticket.assigntogroup## ##ticket.assigntogroup####ENDIFticket.assigntogroup## ##ELSEticket.assigntogroup## aucun##ENDELSEticket.assigntogroup## ##lang.ticket.assigntouser##:##IFticket.assigntouser## ##ticket.assigntouser####ENDIFticket.assigntouser## ##ELSEticket.assigntouser## aucun##ENDELSEticket.assigntouser## In text mode, I only displays minimal informations and advice users to open this email in HTML or to go in Web interface. When this template will be working fine, I will post it on the forum... Nicolas _______________________________________________ Glpi-dev mailing list Glpi-dev@gna.org https://mail.gna.org/listinfo/glpi-dev