05-30-2012 07:51 PM
05-31-2012 06:19 AM
Alfresco.DocumentList.generateFileFolderLinkMarkup = function DL_generateFileFolderLinkMarkup(scope, record)
{
var jsNode = record.jsNode,
recordSiteName = $isValueSet(record.location.site) ? record.location.site.name : null,
html;
// Test for: handling a link and the link's target does not live within this site
if (jsNode.isLink && recordSiteName !== scope.options.siteId)
{
if (jsNode.isContainer)
{
// Create a URL to either the Repository or Site document library where the link target lives
html = $siteURL((recordSiteName === null ? "repository" : "documentlibrary") + "?path=" + encodeURIComponent($combine(record.location.path, record.location.file)),
{
site: recordSiteName
});
}
else
{
// Create a URL to the document details page for the link target
html = scope.getActionUrls(record, recordSiteName).viewUrl;
}
}
else
{
if (jsNode.isContainer)
{
// Create path-change filter markup
html = '#" class="filter-change" rel="' + Alfresco.DocumentList.generatePathMarkup(record.location);
}
else
{
// Create a URL to the document details page for the link target
html = scope.getActionUrls(record).viewUrl;
}
}
return '<a href="' + html + '">';
};
05-31-2012 04:43 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.