<?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 Document template : 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/document-template-get-all-a-document-path-with-quot-title-quot/m-p/328084#M15085</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I would like do the same as : &lt;A href="http://answers.nuxeo.com/questions/6825/xhtml-get-all-a-document-path-with-title-and-not-name"&gt;Xhtml : get all a document path with "Title" and not "name"&lt;/A&gt;
but in document template (Code in freemarker) for email, pdf, xls extraction.&lt;/P&gt;
&lt;P&gt;So I got a "Document" in my template and need to write it's path, not with the classic "name", but with the "title" attribute of each element of the path.&lt;/P&gt;
&lt;P&gt;Do you know how to do it ?&lt;/P&gt;
&lt;P&gt;thank you&lt;/P&gt;</description>
    <pubDate>Wed, 02 Oct 2013 17:04:57 GMT</pubDate>
    <dc:creator>milonette_</dc:creator>
    <dc:date>2013-10-02T17:04:57Z</dc:date>
    <item>
      <title>Document template : get all a document path with "Title" and not "name"</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/document-template-get-all-a-document-path-with-quot-title-quot/m-p/328084#M15085</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I would like do the same as : &lt;A href="http://answers.nuxeo.com/questions/6825/xhtml-get-all-a-document-path-with-title-and-not-name"&gt;Xhtml : get all a document path with "Title" and not "name"&lt;/A&gt;
but in document template (Code in freemarker) for email, pdf, xls extraction.&lt;/P&gt;
&lt;P&gt;So I got a "Document" in my template and need to write it's path, not with the classic "name", but with the "title" attribute of each element of the path.&lt;/P&gt;
&lt;P&gt;Do you know how to do it ?&lt;/P&gt;
&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2013 17:04:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/document-template-get-all-a-document-path-with-quot-title-quot/m-p/328084#M15085</guid>
      <dc:creator>milonette_</dc:creator>
      <dc:date>2013-10-02T17:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Document template : get all a document path with "Title" and not "name"</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/document-template-get-all-a-document-path-with-quot-title-quot/m-p/328085#M15086</link>
      <description>&lt;P&gt;I used a function, as I could :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;#function getPathWithTitle doc&amp;gt;
    &amp;lt;#local tabPath = doc.path?split("/") &amp;gt;
    &amp;lt;#local pathSize = tabPath?size &amp;gt;
    &amp;lt;#local currentDoc = doc &amp;gt;
    &amp;lt;#local resultPath ="" &amp;gt;
    &amp;lt;#list 1..pathSize-1 as i&amp;gt;
        &amp;lt;#attempt&amp;gt;
            &amp;lt;#local theDoc = currentDoc.parent &amp;gt;
        &amp;lt;#recover&amp;gt;
            &amp;lt;#local resultPath = currentDoc.title + "/" + resultPath &amp;gt;
            &amp;lt;#break&amp;gt;
        &amp;lt;/#attempt&amp;gt;
        &amp;lt;#if theDoc?has_content &amp;gt;
            &amp;lt;#local resultPath = currentDoc.title + "/" + resultPath &amp;gt;
            &amp;lt;#local currentDoc = theDoc &amp;gt;
        &amp;lt;/#if&amp;gt;
    &amp;lt;/#list&amp;gt;
    &amp;lt;#return resultPath?html &amp;gt;
&amp;lt;/#function&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 02 Oct 2013 17:51:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/document-template-get-all-a-document-path-with-quot-title-quot/m-p/328085#M15086</guid>
      <dc:creator>milonette_</dc:creator>
      <dc:date>2013-10-02T17:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Document template : get all a document path with "Title" and not "name"</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/document-template-get-all-a-document-path-with-quot-title-quot/m-p/328086#M15087</link>
      <description>&lt;P&gt;When user of UI try to render this document template with clic on an UI button it fails to get doc.parent with exception user can't read it"...&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2013 17:19:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/document-template-get-all-a-document-path-with-quot-title-quot/m-p/328086#M15087</guid>
      <dc:creator>milonette_</dc:creator>
      <dc:date>2013-10-18T17:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Document template : get all a document path with "Title" and not "name"</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/document-template-get-all-a-document-path-with-quot-title-quot/m-p/328087#M15088</link>
      <description>&lt;P&gt;Question ref created&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2013 10:25:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/document-template-get-all-a-document-path-with-quot-title-quot/m-p/328087#M15088</guid>
      <dc:creator>milonette_</dc:creator>
      <dc:date>2013-10-21T10:25:17Z</dc:date>
    </item>
  </channel>
</rss>

