12-04-2009 06:00 AM
12-04-2009 09:11 AM
12-07-2009 10:50 PM
12-10-2009 05:11 AM
/**
* Name & description custom datacell formatter
*/
var renderCellName = function MS_oR_renderCellName(elCell, oRecord, oColumn, oData)
{
var siteId = oRecord.getData("shortName"),
siteTitle = oRecord.getData("title"),
siteDescription = oRecord.getData("description");
var desc = '<div class="site-title"><a href="' + Alfresco.constants.URL_PAGECONTEXT + 'site/' + siteId + '/dashboard" class="theme-color-1">' + $html(siteTitle) + '</a></div>';
desc += '<div class="site-description">' + $html(siteDescription) + '</div>';
elCell.innerHTML = desc;
};
/**
* Name & description custom datacell formatter
*/
var renderCellName = function MS_oR_renderCellName(elCell, oRecord, oColumn, oData)
{
var siteId = oRecord.getData("shortName"),
siteTitle = oRecord.getData("title"),
siteDescription = oRecord.getData("description");
if (siteId == "yoursite1")
{
var desc = '<div class="site-title-1"><a href="' + Alfresco.constants.URL_PAGECONTEXT + 'site/' + siteId + '/dashboard" class="theme-color-1">' + $html(siteTitle) + '</a></div>';
} else
{
var desc = '<div class="site-title"><a href="' + Alfresco.constants.URL_PAGECONTEXT + 'site/' + siteId + '/dashboard" class="theme-color-1">' + $html(siteTitle) + '</a></div>';
}
desc += '<div class="site-description">' + $html(siteDescription) + '</div>';
elCell.innerHTML = desc;
};
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.