06-15-2012 06:45 AM
<#include "include/documentlist.lib.ftl" />
<@documentlistTemplate>
<script type="text/javascript">//<![CDATA[
new Alfresco.DocumentList("${args.htmlid}").setOptions({
<#–<#if repositoryUrl??>repositoryUrl: "${repositoryUrl}",</#if>–>
siteId: "",
containerId: "",
rootNode: ${rootFolderPath},
usePagination: ${(args.pagination!false)?string},
sortAscending: ${(preferences.sortAscending!true)?string},
sortField: "${(preferences.sortField!"cm:name")?js_string}",
showFolders: ${(preferences.showFolders!true)?string},
simpleView: ${(preferences.simpleView!false)?string},
highlightFile: "${(page.url.args["file"]!"")?js_string}",
replicationUrlMapping: ${replicationUrlMappingJSON!"{}"},
repositoryBrowsing: true,
useTitle: ${(useTitle!true)?string},
userIsSiteManager: false
}).setMessages(
${messages}
);
//]]></script>
</@>
where ${rootFolderPath} is my custom path to some root node.06-22-2012 08:56 AM
…
resolveNode: function ParseArgs_resolveNode(reference)
{
var node = null;
try
{
if (reference == "alfresco://company/home")
{
node = companyhome;
}
else if (reference == "alfresco://user/home")
{
node = userhome;
}
else if (reference == "alfresco://sites/home")
{
node = companyhome.childrenByXPath("st:sites")[0];
}
else if (reference.indexOf("://") > 0)
{
node = search.findNode(reference);
}
else if (reference.substring(0, 1) == "/")
{
node = search.xpathSearch(reference)[0];
}
}
catch (e)
{
return null;
}
return node;
}
…
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.