<?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 Re: Tab enablement : Document path DOES NOT start with... in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/tab-enablement-document-path-does-not-start-with/m-p/327092#M14093</link>
    <description>&lt;P&gt;It was there but @aescaffre formatted his answer badly. I edited it.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Nov 2013 14:36:49 GMT</pubDate>
    <dc:creator>Florent_Guillau</dc:creator>
    <dc:date>2013-11-27T14:36:49Z</dc:date>
    <item>
      <title>Tab enablement : Document path DOES NOT start with...</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/tab-enablement-document-path-does-not-start-with/m-p/327089#M14090</link>
      <description>&lt;P&gt;HI guys !&lt;/P&gt;
&lt;P&gt;I've played around with custom tabs and their enablements and I wonder if there is a way to enable a tab only if the document path &lt;STRONG&gt;does not&lt;/STRONG&gt; start with a given path.&lt;/P&gt;
&lt;P&gt;which is the perfect negation for the existing parameter "Document path starts with".&lt;/P&gt;
&lt;P&gt;Any idea ?&lt;/P&gt;
&lt;P&gt;I've try to set an EL expression for the tab enablement such as :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;#{not fn:startsWith(currentDocument.ecm.pathAsString, '/default-domain/workspaces/myWorkspace/')}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;it doesn't work, I'm not sure about the 'fn:startsWith' call...   is there a doc of available function for EL expressions in this context ?
and is this a good approach for this problem ?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2013 16:53:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/tab-enablement-document-path-does-not-start-with/m-p/327089#M14090</guid>
      <dc:creator>Guian_</dc:creator>
      <dc:date>2013-11-25T16:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Tab enablement : Document path DOES NOT start with...</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/tab-enablement-document-path-does-not-start-with/m-p/327090#M14091</link>
      <description>&lt;P&gt;You can try  to put this in the Custom EL Expression field:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;#{!currentDocument.getPathAsString().startsWith("/default-domain/workspaces/myWorkspace/")}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Nov 2013 11:28:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/tab-enablement-document-path-does-not-start-with/m-p/327090#M14091</guid>
      <dc:creator>Alain_ESCAFFRE</dc:creator>
      <dc:date>2013-11-27T11:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Tab enablement : Document path DOES NOT start with...</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/tab-enablement-document-path-does-not-start-with/m-p/327091#M14092</link>
      <description>&lt;P&gt;Works perfectly after adding the # at the beginning of the EL Expression &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;   thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2013 12:37:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/tab-enablement-document-path-does-not-start-with/m-p/327091#M14092</guid>
      <dc:creator>Guian_</dc:creator>
      <dc:date>2013-11-27T12:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: Tab enablement : Document path DOES NOT start with...</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/tab-enablement-document-path-does-not-start-with/m-p/327092#M14093</link>
      <description>&lt;P&gt;It was there but @aescaffre formatted his answer badly. I edited it.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2013 14:36:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/tab-enablement-document-path-does-not-start-with/m-p/327092#M14093</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2013-11-27T14:36:49Z</dc:date>
    </item>
  </channel>
</rss>

