11-17-2010 07:48 AM
{http://www.alfresco.org/model/content/1.0}creator = admin
{http://www.alfresco.org/model/imap/1.0}messageTo = [email protected]
(…)
${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 !!
11-17-2010 12:11 PM
${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 = [email protected]
{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
11-17-2010 12:35 PM
11-17-2010 03:14 PM
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
11-18-2010 03:42 AM
11-18-2010 04:10 AM
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>
01-20-2011 11:30 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.