I am trying to customize the node-header of document list page in alfresco.what I am doing is checking for the presence of pdffolder aspect that compresses all the files inside a folder and if the aspect is present,then compressed label is added,otherwise original label is added.for this I have added the following code in node-header.get.html.ftl
<#if !isContainer>
<#assign nodeType = node.type?replace(":","_") + ".title">
<#assign fileExtIndex = item.fileName?last_index_of(".")>
<#if fileExtIndex gt -1>
<#assign fileExt = item.fileName?substring(fileExtIndex + 1)?lower_case>
<#elseif node.mimetype?? && mimetypes.getExtension(node.mimetype)??><#-- Mimetype may be null if it is not known in the repository -->
<#assign fileExt = mimetypes.getExtension(node.mimetype)>
<#else>
<#assign fileExt = "generic">
</#if>
<#if node.hasAspect("ev
dffolder")>
<#assign viewType = "Compressed">
<#else>
<#assign viewType = "Original">
</#if>
</#if>
but it is showing the exception "FreeMarker template error:
The following has evaluated to null or missing:
==> node.hasAspect [in template "org/alfresco/components/node-details/node-header.get.html.ftl""