Bonjour,J'ai besoin de faire une vue personnalisée en affichant la valeur "messageTo" des documents eml. Mon problème est que je n'arrive pas à récupérer la valeur du champ "messageTo" d'un document directement.L'info existe bien, car je peux l'afficher avec le modèle doc_info.ftl :(..)Properties:
{http://www.alfresco.org/model/content/1.0}creator = admin
{http://www.alfresco.org/model/imap/1.0}messageTo = xxx@xxx.fr
(…)
mais je n'arrive pas à récupérer la valeur "messageTo" directement.
${child.properties.description} -
${child.properties.title} -
${child.properties['messageTo']} <<<<< ne fonctionne pas
${child.properties.messageTo <<<<< ne fonctionne pas non plus
Par contre, je peux afficher l'ensemble des properties (dont messageTo) avec le script:
<#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 !!