02-11-2013 08:08 AM
02-11-2013 10:03 AM
02-15-2013 08:28 AM
<bean id="evaluator.doclib.action.customDocument" parent="evaluator.doclib.action.nodeType">
<property name="types">
<list>
<value>cm:content</value>
</list>
</property>
</bean>
<config evaluator="string-compare" condition="DocLibCustom">
<dependencies>
<js src="/modules/hasCustomType.js" />
</dependencies>
</config>
<config evaluator="string-compare" condition="DocumentLibrary">
<metadata-templates>
<template id="isCustomType">
<evaluator>evaluator.doclib.action.customDocument</evaluator>
<line index="10" id="date" view="detailed">{date}{size}</line>
<line index="20" id="type" evaluator="evaluator.doclib.action.customDocument">
{hasCustomType}
</line>
<line index="30" id="description" view="detailed">{description}</line>
</template>
</metadata-templates>
</config>
08-07-2019 06:28 AM
Hello Mrkrjs_,
Could you please let me know where you kept your property file. As for me I am getting value as cm:content/cm:folder as Type and not the expected one as 'Content'/'Folder'. I am using ACS 5.2
Also I tried another approach ,customized documentlist-view.table.js as we need to show document type column in only Table view. Added the below code in renderCellThumbnail method. But again type is displaying as cm:content/cm:folder , its not picking the value from property file.
Alfresco.DocumentListTableViewRenderer.prototype.renderCellThumbnail = function DL_SVR_renderCellThumbnail(scope, elCell, oRecord, oColumn, oData)
{
var temp = oRecord.getData();
var node = temp.jsNode;
var type = node.type;
type=type.replace(":", "-");
node.properties['cm:type']= scope.msg(type);
Tried with this.msg(type) , but it is throwing error as this.msg is not found
Added the type column in share-documentlibrary-custom.xml in jsonconfig of table renderer view.
Please help me to find the correct path of property file.
Thanks in advance
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.