04-09-2014 12:35 PM
<html>
<head>
<title>${file.name}</title>
</head>
<body>
File: ${file.name}
<br>
<table>
<#if fichero.isContainer>
<td>><td><a href="${url.serviceContext}/folder<@encodepath node=fichero/>">${fichero.name}</a>
<#else>
<td><td><a href="${url.serviceContext}/api/node/content/${fichero.nodeRef.storeRef.protocol}/${fichero.nodeRef.storeRef.identifier}/${fichero.nodeRef.id}/${fichero.name?url}">${fichero.name}</a>
</#if>
</table>
<td><td><a href="${url.serviceContext}/api/node/content/${fichero.nodeRef.storeRef.protocol}/${fichero.nodeRef.storeRef.identifier}/${fichero.nodeRef.id}/${fichero.name?url}">${child.name}</a>
</body>
</html>
var spath="'+PATH:\""+companyhome.displayPath +"//*\" + ";
var scontent="@\\{http\\://www.alfresco.org/model/content/1.0\\}content.mimetype:application/pdf + ";
var qname = "@cm\\:name:" + args.name;
var strq=spath+scontent+qname;
var content=search.luceneSearch(strq);
model.foo = "example";
model.fichero = content;
<webscript>
<shortname>Show Content</shortname>
<description>Show user specific content identified by parameters </description>
<url>/showContent?name={nameArgument}</url>
<authentication>user</authentication>
</webscript>
04-09-2014 10:09 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.