01-14-2011 05:37 PM
select d.* from cmis:document as d where in_tree(d, '${section:.}') and d.cmis:objectTypeId='D:ws:article' order by d.cmis:creationDate desc
select d.* from cmis:document as d where in_folder(d, '${section:.}') and d.cmis:objectTypeId='D:ws:article' and d.cmis:name not like 'comment-thankyou.html' order by d.cmis:creationDate desc
01-18-2011 02:54 AM
01-18-2011 03:43 AM
01-18-2011 05:26 AM
<#list collection.assetIds as assetId>
"${assetId}"<#if assetId_has_next>,</#if>
</#list>
to add a reverse command to the freemarker tag like so:<#list collection.assetIds?reverse as assetId>
"${assetId}"<#if assetId_has_next>,</#if>
</#list>
After a restart of Alfresco, all the quick start pages that display assets are now listing them in reverse chronological order (newest to oldest), much more like how blogs are supposed to be! 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.