07-21-2008 01:07 PM
07-22-2008 08:32 AM
var query = "";
var custom = "@custom\\:";
var found = "0";
for (arg in args) {
if(args[arg]!=null && args[arg].length > 0 )
{
found="1";
logger.log(args[arg]);
query += (custom + arg + ":" + args[arg]+" ");
}
}
if(found.equals("1"))
query= " AND "+ query;
var luceneQuery = " +PATH:\"/app:company_home/cm:MyCusotmer//*\"" + query + " AND TYPE:\"custom:DamType\"";
var nodes = search.luceneSearch(luceneQuery);
model.total = nodes.length;
model.resultset = nodes;
<table>
<#list resultset as node>
<tr>
<td>
<a href="${url.serviceContext}/api/node/content/${node.nodeRef.storeRef.protocol}/${node.nodeRef.storeRef.identifier}/${node.nodeRef.id}/${node.name?url}?alf_ticket=${session.ticket}">
${node.name}
</a>
</tr>
</#list>
</table>
03-25-2009 01:58 PM
nodes.splice(args['start'], args['max']);
03-25-2009 05:37 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.