03-28-2012 01:30 AM
03-28-2012 01:41 AM
03-30-2012 02:19 AM
<#if field.control.params.displayType?exists>
// place a custom function before the execution of the fnRenderItemName-function
Alfresco.ObjectRenderer.prototype.fnRenderItemNameOriginal = Alfresco.ObjectRenderer.prototype.fnRenderItemName;
Alfresco.ObjectRenderer.prototype.fnRenderItemName = function()
{
var scope = this;
/**
* Name datacell formatter
*
* @method renderItemName
* @param elCell {object}
* @param oRecord {object}
* @param oColumn {object}
* @param oData {object|string}
*/
return function ObjectRenderer_renderItemName(elCell, oRecord, oColumn, oData)
{
var template = '';
// Create New item cell type
if (oRecord.getData("type") == IDENT_CREATE_NEW)
{
scope.createNewItemId = Alfresco.util.generateDomId();
elCell.innerHTML = '<input id="' + scope.createNewItemId + '" type="text" class="create-new-input" tabindex="0" />';
return;
}
if (oRecord.getData("isContainer") ||
(!oRecord.getData("isContainer") && (scope.options.allowNavigationToContentChildren || oRecord.getData("type") == "cm:category")))
{
template += '<h3 class="item-name"><a href="#" class="theme-color-1 parent-' + scope.eventGroup + '">{name}</a></h3>';
}
else
{
if(logger.isLoggerEnabled())
{
logger.log("return value:" + String(oRecord.getData("properties["${field.control.params.displayType}"]"));
}
template += '<h3 class="item-name">' + String(oRecord.getData("properties["${field.control.params.displayType}"]")) + '</h3>';
}
if (!scope.options.compactMode)
{
template += '<div class="description">{description}</div>';
}
elCell.innerHTML = scope.renderItem(oRecord.getData(), 0, template);
};
},
</#if>
10-16-2014 03:27 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.