{http://www.alfresco.org/model/content/1.0}creator = admin
{http://www.alfresco.org/model/imap/1.0}messageTo = xxx@xxx.fr
(…)
${child.properties.description} -
${child.properties.title} -
${child.properties['messageTo']} <<<<< ne fonctionne pas
${child.properties.messageTo <<<<< ne fonctionne pas non plus
<#list space.children as child>
<#if child.isDocument >
<img src="${url.context}${child.icon32}">
<b>${child.properties.name}</b> (${child.children?size}) -
${child.properties.description} -
${child.properties.title} -
${child.properties.creator}
<#assign props = child.properties?keys>
<#list props as t>
<#– If the property exists –>
<#if child.properties[t]?exists>
<#– If it is a date, format it accordingly –>
<#if child.properties[t]?is_date>
${t} (date) = ${child.properties[t]?datetime}<br>
<#– If it is a boolean, format it accordingly –>
<#elseif child.properties[t]?is_boolean>
${t} (bool) = ${child.properties[t]?string("yes", "no")}<br>
<#– If it is a collection, enumerate it –>
<#elseif child.properties[t]?is_enumerable>
${t} (enumerate) = <#list child.properties[t] as i>${i} </#list><br>
<#– Otherwise treat it as a string –>
<#else>
${t} (string)= ${child.properties[t]?html}<br>
</#if>
</#if>
</#list>
</#if>
<br>
</#list>
HELP !!
${document.properties["imap:messageTo"]}
${document.properties["imap:attachmentsFolder"]} => Echec
et
${document.assocs["imap:attachmentsFolder"]} => Echec
{http://www.alfresco.org/model/imap/1.0}attachment
/Company Home/Imap Home/admin/INBOX/Message_530.eml-attachments/P01_F8058037416_0043_497679_20101116_0000445423.pdf
/Company Home/Imap Home/admin/INBOX/Message_530.eml-attachments/ATT00004.htm
{http://www.alfresco.org/model/imap/1.0}attachmentsFolder
/Company Home/Imap Home/admin/INBOX/Message_530.eml-attachments
Properties:
{http://www.alfresco.org/model/content/1.0}creator = admin
{http://www.alfresco.org/model/imap/1.0}messageTo = xxxx@xxx.com
{http://www.alfresco.org/model/imap/1.0}messageSubject = Fwd: Facture et Avoir Techdata. Client N° 497679 envoyé le 17/11/2010
{http://www.alfresco.org/model/system/1.0}store-protocol = workspace
merci d'utiliser des balises code pour des extraits de code / config. en l'état votre post est peu lisible, surtout en fin d'apres midi.
merci également de ne pas mettre d'adresses mail en clair, sauf si vous appréciez particulièrement le spam
probable que vous ne puissiez pas l'afficher directement car c'est une séquence. il faut probablement itérer sur les élements, même s'il n'y en a qu'un
<h4>Liste des mails </h4>
<#list space.children as document>
<#if document.isDocument >
<#if document.properties["imap:messageTo"]?? >
<img src="${url.context}${document.icon32}"> <a href="/alfresco${document.url}" target="new"><b>${document.properties["imap:dateSent"]?date} / ${document.properties["imap:messageSubject"]?string} / ${document.properties["imap:messageFrom"]?html}</b></a>
<br>
Nom du document: ${document.properties.name} <br>
Taille : ${document.children?size}<br>
Description: ${document.properties.description} <br>
Titre: ${document.properties.title} <br>
De: ${document.properties["imap:messageFrom"]}<br>
À: ${document.properties["imap:messageTo"]?html} <br>
Sujet: ${document.properties["imap:messageSubject"]?html} <br>
Envoyé le: ${document.properties["imap:dateSent"]?date} <br>
<#if document.assocs["imap:attachmentsFolder"]?exists>
<#list document.assocs["imap:attachmentsFolder"] as t>
Dossier des fichiers attachés: ${t.displayPath}/${t.name}<br>
</#list>
</#if>
<br>
</#if>
</#if>
</#list>
Une autre version:
<h4>Liste des courriels dans l'espace courant (${space.name}) </h4>
<table>
<#list space.children as document>
<#if document.isDocument >
<#if document.properties["imap:messageTo"]?? >
<tr>
<td><a href="/alfresco${document.url}" target="new">${document.properties["imap:dateSent"]?date} </td>
<td><a href="/alfresco${document.url}" target="new">${document.properties["imap:messageSubject"]?string}</a></td>
<td><a href="/alfresco${document.url}" target="new">${document.properties["imap:messageFrom"]?html}</a></td>
<#if document.assocs["imap:attachmentsFolder"]?exists>
<#list document.assocs["imap:attachmentsFolder"] as t>
Dossier des fichiers attachés: ${t.displayPath}/${t.name}<br>
<td><a href="/alfresco${t.url}" target="new">voir les fichiers attachés</a></td>
</#list>
<#else>
<td>_</td>
</#if>
</tr>
</#if>
</#if>
</#list>
</table>
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.