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.
<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>
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