<td>
<#list child.properties["cm:categories"] as prop>
${prop.name}<br/>
</#list>
</td>
<aspect name="cm:versionable">
<title>Versionable</title>
<properties>
<property name="cm:versionLabel">
<title>Version Label</title>
<type>d:text</type>
<protected>true</protected>
</property>
<property name="cm:initialVersion">
<title>Initial Version</title>
<type>d:boolean</type>
<default>true</default>
</property>
<property name="cm:autoVersion">
<title>Auto Version</title>
<type>d:boolean</type>
<default>true</default>
</property>
</properties>
</aspect>
Se ha producido un Error al procesar la plantilla 'Expected collection or sequence. child.properties["cm:versionLabel"] evaluated instead to freemarker.template.SimpleScalar on line 18, column 36 in workspace://SpacesStore/4898d410-a782-473d-a413-965dd6994bbc.'. Por favor contacte con el administrador del sistema.
<html><head></head>
<body>
<#– Table of docs in a specific folder –>
<h3>${space.name} documents</h3>
<table cellpadding=2 border=0 style="BORDER: 1px;">
<tr>
<td></td>
<td><b>Nombre</b></td>
<td><b>Version</b></td>
</tr>
<#assign query = ".//*[subtypeOf('cm:content')]">
<#list space.childrenByXPath[query] as child>
<tr>
<#if child.properties["cm:versionLabel"]?exists>
<td><a href="/alfresco${child.url}" target="new"><img src="/alfresco${child.icon16}" border=0></a></td>
<td><a href="/alfresco${child.url}" target="new">${child.properties.name}</a></td>
<td>
<#list child.properties["cm:versionLabel"] as prop>
${prop.name}<br/>
</#list>
</td>
</#if>
</tr>
</#list>
</table>
</body>
</html>
<html><head></head>
<body>
<#– Table of docs in a specific folder –>
<h3>${space.name} documents</h3>
<table cellpadding=2 border=0 style="BORDER: 1px;">
<tr>
<td></td>
<td><b>Name</b></td>
<td><b>Last Modified</b></td>
<td><b>Categories</b></td>
<td><b>Versions</b></td>
</tr>
<#assign query = ".//*[subtypeOf('cm:content')]">
<#list space.childrenByXPath[query] as child>
<tr>
<#if child.properties["cm:categories"]?exists>
<td><a href="/alfresco${child.url}" target="new"><img src="/alfresco${child.icon16}" border=0></a></td>
<td><a href="/alfresco${child.url}" target="new">${child.properties.name}</a></td>
<td>${child.properties["cm:modified"]?string("dd-MMM-yyyy hh:mm")}</td>
<td>
<#list child.properties["cm:categories"] as prop>
${prop.name}<br/>
</#list>
</td>
<td>
<#if hasAspect(child, "cm:versionable") == 1>
<#list child.versionHistory as record>
<a href="/alfresco${record.url}" target="new">${record.versionLabel}</a>
<b>-</b>
</#list>
</#if>
</td>
</#if>
</tr>
</#list>
</table>
</body>
</html>
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.