06-22-2008 02:24 PM
<#assign x = 0>
{"recordsReturned":${search.itemsPerPage},
"totalRecords":${search.totalResults},
"startIndex":0,
"sort":null,
"dir":"asc",
"records":[
<#list search.results as row>
{"id":"${row.id}",
"name":"${row.name}",
"icon":"${row.icon16}",
"urlcontext":"${url.context}",
"description":"${row.properties.description}",
"author":"${row.properties.creator}"
}
<#assign x = x+ 1>
<#if x != search.itemsPerPage>
,
</#if>
</#list>
]
}
freemarker.core.InvalidReferenceException - Expression row.properties.description is undefined on line 15, column 34 in org/alfresco/repository/search/keywordsearch.get.json.ftl.
06-22-2008 02:55 PM
<#if row.properties.description?? == true>
"description":"${row.properties.description}",
</#if>
06-22-2008 02:43 PM
06-22-2008 02:55 PM
<#if row.properties.description?? == true>
"description":"${row.properties.description}",
</#if>
06-22-2008 03:15 PM
Sometimes I should RTFM…Particularly the Freemarker manual - it's one of the best examples of open source documentation I've ever seen! :wink:
06-23-2008 05:53 AM
${myVar?default('default text')}
06-23-2008 09:27 AM
01-09-2009 04:06 PM
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.