<?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: Why toDisplayPath shows the parent path? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/why-todisplaypath-shows-the-parent-path/m-p/288849#M241979</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It is because the method itself returns the PATH of the nodeRef (where the nodeRef actually lies).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So for example your file test.pdf lies in Company Home/FolderA then the method getPath() should return -&amp;gt; Company Home/FolderA; and not Company Home/FolderA/test.pdf&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In your case, if your nodeRef lies in C folder ( A/B/C ), and still the method getPath() returns A/B, then you need to verify the nodeRef once. It might be incorrect.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Sep 2014 09:56:08 GMT</pubDate>
    <dc:creator>sanket</dc:creator>
    <dc:date>2014-09-04T09:56:08Z</dc:date>
    <item>
      <title>Why toDisplayPath shows the parent path?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/why-todisplaypath-shows-the-parent-path/m-p/288848#M241978</link>
      <description>I want to return a friendly path from a node. I try to use this:getNodeService().getPath(nodeRef).toDisplayPath(getNodeService(), getPermissionService())‍‍‍but if nodeRef path is A/B/C, toDisplayPath returns me A/B.What's the reason? Are there another method to obtain a full friendly path? Thanks!</description>
      <pubDate>Wed, 23 Jul 2014 09:49:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/why-todisplaypath-shows-the-parent-path/m-p/288848#M241978</guid>
      <dc:creator>spilby</dc:creator>
      <dc:date>2014-07-23T09:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why toDisplayPath shows the parent path?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/why-todisplaypath-shows-the-parent-path/m-p/288849#M241979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It is because the method itself returns the PATH of the nodeRef (where the nodeRef actually lies).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So for example your file test.pdf lies in Company Home/FolderA then the method getPath() should return -&amp;gt; Company Home/FolderA; and not Company Home/FolderA/test.pdf&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In your case, if your nodeRef lies in C folder ( A/B/C ), and still the method getPath() returns A/B, then you need to verify the nodeRef once. It might be incorrect.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 09:56:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/why-todisplaypath-shows-the-parent-path/m-p/288849#M241979</guid>
      <dc:creator>sanket</dc:creator>
      <dc:date>2014-09-04T09:56:08Z</dc:date>
    </item>
  </channel>
</rss>

