cancel
Showing results for 
Search instead for 
Did you mean: 

How to check deleted documents in .ftl?

freemann_
Star Contributor
Star Contributor

Hi,

In my webengine site, I use a basic java/.ftl file instructions to generate a tree.

My Java method :

*public getViewTree(@PathParam("index") int index) {

String sectionpath = path[index];

ctx.setProperty...

...

return getView("tree").arg("doc", new DocumentRoot(ctx,sectionpath));

}*

My tree.ftl

...

<#list Document.children?sort_by("dc:title") as doc>

<#if doc.isFolder>

**<#if doc.currentLifleCycleState != "deleted">**

   .. treatement

</#if>

</#if>

</#list>

I do not know why this expression : <#if doc.currentLifleCycleState != "deleted"> does not work?

Thanks for your help

0 REPLIES 0
Getting started

Attention: Blogs & Forums are in READ-ONLY mode from Oct 9-19 as we transition to our new platform. Learn more.

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.