As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<#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>