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