<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to check deleted documents in .ftl? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-check-deleted-documents-in-ftl/m-p/317629#M4630</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;In my webengine site, I use a basic java/.ftl file instructions to generate a tree.&lt;/P&gt;
&lt;P&gt;My &lt;STRONG&gt;Java method&lt;/STRONG&gt; :&lt;/P&gt;
&lt;P&gt;*public getViewTree(@PathParam("index") int index) {&lt;/P&gt;
&lt;P&gt;String sectionpath = path[index];&lt;/P&gt;
&lt;P&gt;ctx.setProperty...&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;return getView("tree").arg("doc", new DocumentRoot(ctx,sectionpath));&lt;/P&gt;
&lt;P&gt;}*&lt;/P&gt;
&lt;P&gt;My &lt;STRONG&gt;tree.ftl&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;&amp;lt;#list Document.children?sort_by("dc:title") as doc&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;#if doc.isFolder&amp;gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;**&amp;lt;#if doc.currentLifleCycleState != "deleted"&amp;gt;**

   .. treatement
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;lt;/#if&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;/#if&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;/#list&amp;gt;&lt;/P&gt;
&lt;P&gt;I do not know why this expression : &lt;STRONG&gt;&amp;lt;#if doc.currentLifleCycleState != "deleted"&amp;gt;&lt;/STRONG&gt; does not work?&lt;/P&gt;
&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
    <pubDate>Fri, 30 Aug 2013 12:33:10 GMT</pubDate>
    <dc:creator>freemann_</dc:creator>
    <dc:date>2013-08-30T12:33:10Z</dc:date>
    <item>
      <title>How to check deleted documents in .ftl?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-check-deleted-documents-in-ftl/m-p/317629#M4630</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;In my webengine site, I use a basic java/.ftl file instructions to generate a tree.&lt;/P&gt;
&lt;P&gt;My &lt;STRONG&gt;Java method&lt;/STRONG&gt; :&lt;/P&gt;
&lt;P&gt;*public getViewTree(@PathParam("index") int index) {&lt;/P&gt;
&lt;P&gt;String sectionpath = path[index];&lt;/P&gt;
&lt;P&gt;ctx.setProperty...&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;return getView("tree").arg("doc", new DocumentRoot(ctx,sectionpath));&lt;/P&gt;
&lt;P&gt;}*&lt;/P&gt;
&lt;P&gt;My &lt;STRONG&gt;tree.ftl&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;&amp;lt;#list Document.children?sort_by("dc:title") as doc&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;#if doc.isFolder&amp;gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;**&amp;lt;#if doc.currentLifleCycleState != "deleted"&amp;gt;**

   .. treatement
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;lt;/#if&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;/#if&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;/#list&amp;gt;&lt;/P&gt;
&lt;P&gt;I do not know why this expression : &lt;STRONG&gt;&amp;lt;#if doc.currentLifleCycleState != "deleted"&amp;gt;&lt;/STRONG&gt; does not work?&lt;/P&gt;
&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2013 12:33:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-check-deleted-documents-in-ftl/m-p/317629#M4630</guid>
      <dc:creator>freemann_</dc:creator>
      <dc:date>2013-08-30T12:33:10Z</dc:date>
    </item>
  </channel>
</rss>

