<?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: Xhtml : get all a document path with &amp;quot;Title&amp;quot; and not &amp;quot;name&amp;quot; in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/xhtml-get-all-a-document-path-with-quot-title-quot-and-not-quot/m-p/314869#M1870</link>
    <description>&lt;P&gt;Hello me,&lt;/P&gt;
&lt;P&gt;This is the code. It's cut because some code wasn't display with this web site (1) (2) &amp;amp; (3).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;      &amp;lt;c:set var="tabPath" value="${fn:split(doc.path,'/')}" /&amp;gt;
      &amp;lt;c:set var="pathSize" value="${fn:length(tabPath)}" /&amp;gt;
      &amp;lt;c:set var="currentDoc" value="#{doc}" /&amp;gt;
      &amp;lt;c:forEach var="i" begin="1" end="#{pathSize-1}"&amp;gt;
         &amp;lt;c:set var="theDoc" value="#{currentDoc.parentRef}" scope="page"/&amp;gt;
          &amp;lt;c:if test="#{not empty theDoc}"&amp;gt;
             &amp;lt;c:choose&amp;gt;
               (1)
             &amp;lt;/c:choose&amp;gt;
            (2)
         &amp;lt;/c:if&amp;gt;
      &amp;lt;/c:forEach&amp;gt;
      (3)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;(1) &lt;CODE&gt; &amp;lt;c:when test="#{not empty resultPath}"&amp;gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;&amp;lt;c:set var="resultPath" value="#{currentDoc.title.concat('/').concat(resultPath)}" /&amp;gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;?&amp;lt;/c:when&amp;gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;&amp;lt;c:otherwise&amp;gt; &lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;&amp;lt;c:set var="resultPath" value="#{currentDoc.title}" /&amp;gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;?&amp;lt;/c:otherwise&amp;gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;(2) &lt;CODE&gt;&amp;lt;c:set var="currentDoc" value="#{documentManager.getDocument(theDoc)}" /&amp;gt;?&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;(3) &lt;CODE&gt;&amp;lt;h:outputText value="#{resultPath}" /&amp;gt;&lt;/CODE&gt;?&lt;/P&gt;</description>
    <pubDate>Wed, 02 Oct 2013 14:48:09 GMT</pubDate>
    <dc:creator>milonette_</dc:creator>
    <dc:date>2013-10-02T14:48:09Z</dc:date>
    <item>
      <title>Xhtml : get all a document path with "Title" and not "name"</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/xhtml-get-all-a-document-path-with-quot-title-quot-and-not-quot/m-p/314868#M1869</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I want to get all the path of a document in my code XHTML but not with "name", with title as in the breadcrumbActions navigation tool.&lt;/P&gt;
&lt;P&gt;I would like this code, but with a documentModel in parameter and not the currentDocument :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;      &amp;lt;h:column&amp;gt;
        &amp;lt;nxu:dataList var="pathElement" value="#{breadcrumbActions.backendPath}"&amp;gt;
          &amp;lt;f:verbatim&amp;gt;&amp;amp;amp;gt;&amp;amp;amp;nbsp;&amp;lt;/f:verbatim&amp;gt;
          &amp;lt;h:outputText value="#{pathElement.name}" /&amp;gt;
        &amp;lt;/nxu:dataList&amp;gt;
      &amp;lt;/h:column&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;do you know how to loop on a documentModel path in xhtml ?&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2013 17:19:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/xhtml-get-all-a-document-path-with-quot-title-quot-and-not-quot/m-p/314868#M1869</guid>
      <dc:creator>milonette_</dc:creator>
      <dc:date>2013-10-01T17:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Xhtml : get all a document path with "Title" and not "name"</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/xhtml-get-all-a-document-path-with-quot-title-quot-and-not-quot/m-p/314869#M1870</link>
      <description>&lt;P&gt;Hello me,&lt;/P&gt;
&lt;P&gt;This is the code. It's cut because some code wasn't display with this web site (1) (2) &amp;amp; (3).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;      &amp;lt;c:set var="tabPath" value="${fn:split(doc.path,'/')}" /&amp;gt;
      &amp;lt;c:set var="pathSize" value="${fn:length(tabPath)}" /&amp;gt;
      &amp;lt;c:set var="currentDoc" value="#{doc}" /&amp;gt;
      &amp;lt;c:forEach var="i" begin="1" end="#{pathSize-1}"&amp;gt;
         &amp;lt;c:set var="theDoc" value="#{currentDoc.parentRef}" scope="page"/&amp;gt;
          &amp;lt;c:if test="#{not empty theDoc}"&amp;gt;
             &amp;lt;c:choose&amp;gt;
               (1)
             &amp;lt;/c:choose&amp;gt;
            (2)
         &amp;lt;/c:if&amp;gt;
      &amp;lt;/c:forEach&amp;gt;
      (3)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;(1) &lt;CODE&gt; &amp;lt;c:when test="#{not empty resultPath}"&amp;gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;&amp;lt;c:set var="resultPath" value="#{currentDoc.title.concat('/').concat(resultPath)}" /&amp;gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;?&amp;lt;/c:when&amp;gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;&amp;lt;c:otherwise&amp;gt; &lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;&amp;lt;c:set var="resultPath" value="#{currentDoc.title}" /&amp;gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;?&amp;lt;/c:otherwise&amp;gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;(2) &lt;CODE&gt;&amp;lt;c:set var="currentDoc" value="#{documentManager.getDocument(theDoc)}" /&amp;gt;?&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;(3) &lt;CODE&gt;&amp;lt;h:outputText value="#{resultPath}" /&amp;gt;&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2013 14:48:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/xhtml-get-all-a-document-path-with-quot-title-quot-and-not-quot/m-p/314869#M1870</guid>
      <dc:creator>milonette_</dc:creator>
      <dc:date>2013-10-02T14:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Xhtml : get all a document path with "Title" and not "name"</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/xhtml-get-all-a-document-path-with-quot-title-quot-and-not-quot/m-p/314870#M1871</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm a bit late, but there's also another bean that implements this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;publishActions.getFormattedPath(model.pathAsString)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The only issue is that it concatenates documents with a hard-coded "&amp;gt;". Of course you could hack it with a:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;publishActions.getFormattedPath(model.pathAsString).replaceAll("&amp;gt;", " / ")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 02 Oct 2013 14:55:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/xhtml-get-all-a-document-path-with-quot-title-quot-and-not-quot/m-p/314870#M1871</guid>
      <dc:creator>Marwane_K_A_</dc:creator>
      <dc:date>2013-10-02T14:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Xhtml : get all a document path with "Title" and not "name"</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/xhtml-get-all-a-document-path-with-quot-title-quot-and-not-quot/m-p/314871#M1872</link>
      <description>&lt;P&gt;thank you very much ! Everything in one line !!! So cool !  code became ==&amp;gt; &amp;lt; c&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2013 15:24:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/xhtml-get-all-a-document-path-with-quot-title-quot-and-not-quot/m-p/314871#M1872</guid>
      <dc:creator>milonette_</dc:creator>
      <dc:date>2013-10-02T15:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Xhtml : get all a document path with "Title" and not "name"</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/xhtml-get-all-a-document-path-with-quot-title-quot-and-not-quot/m-p/314872#M1873</link>
      <description>&lt;P&gt;Ok, look at the other answer more simple...&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2013 15:25:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/xhtml-get-all-a-document-path-with-quot-title-quot-and-not-quot/m-p/314872#M1873</guid>
      <dc:creator>milonette_</dc:creator>
      <dc:date>2013-10-02T15:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Xhtml : get all a document path with "Title" and not "name"</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/xhtml-get-all-a-document-path-with-quot-title-quot-and-not-quot/m-p/314873#M1874</link>
      <description>&lt;P&gt;Can I use this bean in MVEL or Freemarker template (and how ?) thank you&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2013 16:14:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/xhtml-get-all-a-document-path-with-quot-title-quot-and-not-quot/m-p/314873#M1874</guid>
      <dc:creator>milonette_</dc:creator>
      <dc:date>2013-10-02T16:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Xhtml : get all a document path with "Title" and not "name"</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/xhtml-get-all-a-document-path-with-quot-title-quot-and-not-quot/m-p/314874#M1875</link>
      <description>&lt;P&gt;Sorry but it's more complicated to insert this in a template, also it depends on what templates exactly (workflow notification? other mail notifications? document template?) Anyway you'd probably have to write some Java to be able to do this.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2013 16:47:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/xhtml-get-all-a-document-path-with-quot-title-quot-and-not-quot/m-p/314874#M1875</guid>
      <dc:creator>Marwane_K_A_</dc:creator>
      <dc:date>2013-10-02T16:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Xhtml : get all a document path with "Title" and not "name"</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/xhtml-get-all-a-document-path-with-quot-title-quot-and-not-quot/m-p/314875#M1876</link>
      <description>&lt;P&gt;Oh&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2013 16:54:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/xhtml-get-all-a-document-path-with-quot-title-quot-and-not-quot/m-p/314875#M1876</guid>
      <dc:creator>milonette_</dc:creator>
      <dc:date>2013-10-02T16:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Xhtml : get all a document path with "Title" and not "name"</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/xhtml-get-all-a-document-path-with-quot-title-quot-and-not-quot/m-p/314876#M1877</link>
      <description>&lt;P&gt;You could post this as a new question, maybe the Nuxeo team has more to say about it.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2013 16:56:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/xhtml-get-all-a-document-path-with-quot-title-quot-and-not-quot/m-p/314876#M1877</guid>
      <dc:creator>Marwane_K_A_</dc:creator>
      <dc:date>2013-10-02T16:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Xhtml : get all a document path with "Title" and not "name"</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/xhtml-get-all-a-document-path-with-quot-title-quot-and-not-quot/m-p/314877#M1878</link>
      <description>&lt;P&gt;Ok thanks &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2013 17:01:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/xhtml-get-all-a-document-path-with-quot-title-quot-and-not-quot/m-p/314877#M1878</guid>
      <dc:creator>milonette_</dc:creator>
      <dc:date>2013-10-02T17:01:54Z</dc:date>
    </item>
  </channel>
</rss>

