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