AnsweredAssumed Answered

Como recuperar propriedades para usar em Modelos do Alfresco

Question asked by fabbricio on Dec 12, 2017
Latest reply on Mar 11, 2018 by eniosoeiro

Estou usando o modelo de email de notificação notify_user_email.html.ftl, em uma regra de pasta do Alfresco quando um documento entra ou sai da pasta. As regras estão sendo executadas e os emails estão sendo enviados perfeitamente. A questão é, eu traduzi o modelo mencionado acima para que o texto fique em português, o problema é que a propriedade ${document.siteShortName!""} trás o nome interno do site no Alfresco e eu preciso da propriedade que me mostre a descrição do site ou o nome de apresentação. Onde posso buscar esses tipos de propriedades?

 

    <html>  <head>     <style type="text/css">         <!-- body {             font-family: Arial, sans-serif;             font-size: 14px;             color: #4c4c4c;         }          a,         a:visited {             color: #0072cf;         }          -->     </style> </head>  <body bgcolor="#dddddd">     <table width="100%" cellpadding="20" cellspacing="0" border="0" bgcolor="#dddddd">         <tr>             <td width="100%" align="center">                 <table width="70%" cellpadding="0" cellspacing="0" bgcolor="white" style="background-color: white; border: 1px solid #aaaaaa;">                     <tr>                         <td width="100%">                             <table width="100%" cellpadding="0" cellspacing="0" border="0">                                 <tr>                                     <td style="padding: 10px 30px 0px;">                                         <table width="100%" cellpadding="0" cellspacing="0" border="0">                                             <tr>                                                 <td>                                                     <table cellpadding="0" cellspacing="0" border="0">                                                         <tr>                                                             <td>                                                                 <img src="${shareUrl}/res/components/images/page-64.png" alt="" width="64" height="64" border="0" style="padding-right: 20px;" />                                                             </td>                                                             <td>                                                                 <div style="font-size: 22px; padding-bottom: 4px;">                                                                     O documento ${document.name}, foi incluído no site ${document.siteShortName!""} pelo usuário ${person.properties.firstName}                                                                 </div>                                                                 <div style="font-size: 13px;">                                                                     ${date?datetime?string.full}                                                                 </div>                                                             </td>                                                         </tr>                                                     </table>                                                     <div style="font-size: 14px; margin: 12px 0px 24px 0px; padding-top: 10px; border-top: 1px solid #aaaaaa;">                                                         <p>Atenção,</p>                                                         <p>o documento, ${document.name}, foi incluído do site ${document.siteShortName!""}.                                                             <p>Clique neste item para ver o link:                                                                 <br />                                                                 <br />${document.shareUrl}</p>                                                             <p>Email enviado automaticamente, não é necessário responder</p>                                                     </div>                                                 </td>                                             </tr>                                         </table>                                     </td>                                 </tr>                                 <tr>                                     <td>                                         <div style="border-bottom: 1px solid #aaaaaa;"> </div>                                     </td>                                 </tr>                                 <tr>                                     <td style="padding: 10px 30px;">                                         <img src="${shareUrl}/themes/default/images/app-logo.png" alt="" width="117" height="48" border="0" />                                     </td>                                 </tr>                             </table>                         </td>                     </tr>                 </table>             </td>         </tr>     </table> </body>  </html>

Outcomes