AnsweredAssumed Answered

Mail templates

Question asked by jjhinojosa on Nov 30, 2007
Latest reply on Nov 30, 2007 by jjhinojosa
Hi, I´m trying to do a mail template like this:

El Asunto XXXXXX ha sido introducido en el espacio de Reparto de Asuntos por la ConsejerÃÂa de XXXXXXXX.

In the red words must be properties of a document, but I don´t know how to insert this properties. Searching I have found a example:

<#– Get a list of all the property names for the document –>
<#assign props =>
<#list props as t>
    <#– If the property exists –>
       <#– If it is a date, format it accordingly–>
       <tr><td>${t} = ${[t]?date}</td></tr>
       <#– If it is a boolean, format it accordingly–>
       <tr><td>${t} = ${[t]?string("yes", "no")}</td></tr>
       <#– Otherwise treat it as a string –>
       <tr><td>${t} = ${[t]}</td></tr>

And the result of the mail like this:

       <tr><td>{}store-protocol = workspace</td></tr>
       <tr><td>{}content = org.alfresco.repo.template.BaseContentNode$TemplateContentData@1faef0a</td></tr>
       <tr><td>{}created = 30-nov-2007</td></tr>
       <tr><td>{Asuntos.model}resconsgob = </td></tr>
       <tr><td>{}versionLabel = 1.0</td></tr>
       <tr><td>{}autoVersion = yes</td></tr>
       <tr><td>{Asuntos.model}tema = </td></tr>
       <tr><td>{}editInline = yes</td></tr>
       <tr><td>{Asuntos.model}claseasunto = PROPUESTAS DE ACTOS ADMINISTRATIVOS</td></tr>
       <tr><td>{Asuntos.model}asunto = Nuevo Asunto</td></tr>
       <tr><td>{}store-identifier = SpacesStore</td></tr>
       <tr><td>{Asuntos.model}fechacomisionsg = 30-dic-2007</td></tr>
       <tr><td>{}initialVersion = yes</td></tr>
       <tr><td>{Asuntos.model}subclaseasunto = PROPUESTAS DE DECRETO</td></tr>
       <tr><td>{Asuntos.model}consejeria = CONSEJERÃ