How to check deleted documents in .ftl?
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
I do not know why this expression : <#if doc.currentLifleCycleState != "deleted"> does not work?
Thanks for your help
0 votes
0 answers
1382 views