<?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 Custom tag : layout : hide a container or a widget when &amp;quot;no task for current user&amp;quot; in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/custom-tag-layout-hide-a-container-or-a-widget-when-quot-no-task/m-p/323455#M10456</link>
    <description>&lt;P&gt;hello,&lt;/P&gt;
&lt;P&gt;I wanted to hide to user a widget if no workflow task was current for him.&lt;/P&gt;
&lt;P&gt;I found this very good documentation about displaying things depending on "workflow or not workflow in process"&lt;/P&gt;
&lt;P&gt;[http://doc.nuxeo.com/pages/viewpage.action?pageId=12912851][1]&lt;/P&gt;
&lt;P&gt;That said this exemple to "not display when no process" :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;#{routingActions.getRelatedRoute() != null?'view':'hidden'}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I try this 3 tests:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;#{routingActions.isEditableRouteElement(currentDocument)?'view':'hidden'}
#{!routingActions.isEmptyFork(currentDocument)?'view':'hidden'}
#{routingActions.isEditableStep(currentDocument)?'view':'hidden'}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Nevertheless this was not enough for not displaying if current user has no task on this document to deal with.
[1]: &lt;A href="http://doc.nuxeo.com/pages/viewpage.action?pageId=12912851" target="test_blank"&gt;http://doc.nuxeo.com/pages/viewpage.action?pageId=12912851&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Sep 2013 17:34:20 GMT</pubDate>
    <dc:creator>milonette_</dc:creator>
    <dc:date>2013-09-17T17:34:20Z</dc:date>
    <item>
      <title>Custom tag : layout : hide a container or a widget when "no task for current user"</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/custom-tag-layout-hide-a-container-or-a-widget-when-quot-no-task/m-p/323455#M10456</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;
&lt;P&gt;I wanted to hide to user a widget if no workflow task was current for him.&lt;/P&gt;
&lt;P&gt;I found this very good documentation about displaying things depending on "workflow or not workflow in process"&lt;/P&gt;
&lt;P&gt;[http://doc.nuxeo.com/pages/viewpage.action?pageId=12912851][1]&lt;/P&gt;
&lt;P&gt;That said this exemple to "not display when no process" :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;#{routingActions.getRelatedRoute() != null?'view':'hidden'}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I try this 3 tests:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;#{routingActions.isEditableRouteElement(currentDocument)?'view':'hidden'}
#{!routingActions.isEmptyFork(currentDocument)?'view':'hidden'}
#{routingActions.isEditableStep(currentDocument)?'view':'hidden'}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Nevertheless this was not enough for not displaying if current user has no task on this document to deal with.
[1]: &lt;A href="http://doc.nuxeo.com/pages/viewpage.action?pageId=12912851" target="test_blank"&gt;http://doc.nuxeo.com/pages/viewpage.action?pageId=12912851&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2013 17:34:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/custom-tag-layout-hide-a-container-or-a-widget-when-quot-no-task/m-p/323455#M10456</guid>
      <dc:creator>milonette_</dc:creator>
      <dc:date>2013-09-17T17:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Custom tag : layout : hide a container or a widget when "no task for current user"</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/custom-tag-layout-hide-a-container-or-a-widget-when-quot-no-task/m-p/323456#M10457</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;
&lt;P&gt;So I read, this java class :&lt;/P&gt;
&lt;P&gt;&lt;A href="http://community.nuxeo.com/api/nuxeo/5.6/javadoc/org/nuxeo/ecm/platform/routing/web/DocumentRoutingActionsBean.html"&gt;http://community.nuxeo.com/api/nuxeo/5.6/javadoc/org/nuxeo/ecm/platform/routing/web/DocumentRoutingActionsBean.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;To find this solution :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;#{!empty routingActions.getCurrentRouteCurrentUserTasks()?'view':'hidden'}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Sep 2013 17:34:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/custom-tag-layout-hide-a-container-or-a-widget-when-quot-no-task/m-p/323456#M10457</guid>
      <dc:creator>milonette_</dc:creator>
      <dc:date>2013-09-17T17:34:47Z</dc:date>
    </item>
  </channel>
</rss>

