01-03-2012 02:23 PM
<config evaluator="string-compare" condition="DocumentLibrary" replace="true">
<metadata-templates>
<template id="default">
<line index="10" id="date">{date}{size}</line>
<line index="20" id="description" view="detailed">{description}</line>
<line index="30" id="tags" view="detailed">{tags}</line>
<line index="40" id="nodeType">Test here {nodeType}</line>
</template>
</metadata-templates>
</config>
<config evaluator="string-compare" condition="DocLibCustom">
<dependencies>
<js src="/alfresco/components/documentlibrary/nodeType_renderer.js"/>
</dependencies>
</config>
(function()
{
var $html = Alfresco.util.encodeHTML,
$isValueSet = Alfresco.util.isValueSet;
if (Alfresco.DocumentList)
{
YAHOO.Bubbling.fire("registerRenderer",
{
propertyName: "nodeType",
renderer: function nodeType_renderer(record, label)
{
var jsNode = record.jsNode,
properties = jsNode.properties,
id = Alfresco.util.generateDomId(),
html = "";
return '<span id="' + id + '" class="item">blue: ' + label + jsNode.type + '</span>';
}
});
}
})();
01-11-2012 01:26 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.