01-17-2014 01:13 AM
01-18-2014 11:53 AM
01-19-2014 10:06 PM
<import resource="classpath:/alfresco/templates/org/alfresco/import/alfresco-util.js">
function main()
{
AlfrescoUtil.param('nodeRef');
AlfrescoUtil.param('site', null);
AlfrescoUtil.param('container', 'documentLibrary');
var documentDetails = AlfrescoUtil.getNodeDetails(model.nodeRef, model.site);
if (documentDetails)
{
var userPermissions = documentDetails.item.node.permissions.user;
model.allowNewVersionUpload = userPermissions["Write"] || false;
model.isWorkingCopy = (documentDetails.item && documentDetails.item.workingCopy && documentDetails.item.workingCopy.isWorkingCopy) ? true : false;
}
// Widget instantiation metadata…
var documentVersions = {
id : "DocumentVersions",
name : "Alfresco.DocumentVersions",
options : {
nodeRef : model.nodeRef,
siteId : model.site,
containerId : model.container,
workingCopyVersion : model.workingCopyVersion,
allowNewVersionUpload : model.allowNewVersionUpload
}
};
model.widgets = [documentVersions];
}
main();
01-21-2014 04:58 AM
html += ' <a href="' + downloadURL + '" class="download" title="' + this.msg("label.download") + '"> </a>';
01-21-2014 10:36 PM
01-22-2014 04:25 AM
01-22-2014 05:57 AM
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.