<?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: How can I get the full path from a nodeRef ? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-the-full-path-from-a-noderef/m-p/266614#M219744</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's not a trivial problem to solve. We have an internal* helper webscript which you could use if you're on V3.3 or newer (it was introduced with Rules support I believe).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's in the alfresco.war, at &lt;/SPAN&gt;&lt;STRONG&gt;/slingshot/doclib/node/{store_type}/{store_id}/{id}/location&lt;/STRONG&gt;&lt;SPAN&gt;, i.e. use the usual client-side or web tier remote calls.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your other, much easier, option is to navigate to the document-details page instead, which just takes a nodeRef argument.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(* internal webscripts are not public APIs and therefore not guaranteed to work between upgrades)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Mar 2011 09:22:02 GMT</pubDate>
    <dc:creator>mikeh</dc:creator>
    <dc:date>2011-03-09T09:22:02Z</dc:date>
    <item>
      <title>How can I get the full path from a nodeRef ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-the-full-path-from-a-noderef/m-p/266609#M219739</link>
      <description>I am using alfresco share 3.0. and I have the nodeRef of an object, how can I get the full path of the object ?I try to generate the path by myself, but I can not get the site name of the nodeReffull path:http://localhost:8080/share/page/site/Hello/documentlibrary#path=/2011/3/000I must know which s</description>
      <pubDate>Tue, 01 Mar 2011 13:05:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-the-full-path-from-a-noderef/m-p/266609#M219739</guid>
      <dc:creator>zengqingyi12</dc:creator>
      <dc:date>2011-03-01T13:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get the full path from a nodeRef ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-the-full-path-from-a-noderef/m-p/266610#M219740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in my documentlibrary, the url is:&lt;/SPAN&gt;&lt;A href="http://localhost:8880/share/page/site/ds/documentlibrary" rel="nofollow noopener noreferrer"&gt;http://localhost:8880/share/page/site/ds/documentlibrary&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;so i use "this.options.siteId" to get the site id&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;is that you need?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2011 01:04:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-the-full-path-from-a-noderef/m-p/266610#M219740</guid>
      <dc:creator>xinyieric</dc:creator>
      <dc:date>2011-03-03T01:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get the full path from a nodeRef ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-the-full-path-from-a-noderef/m-p/266611#M219741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can access this through root scope objects.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, in freemarker you would use ${url.url} for a full url. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;They're listed on wiki here, so check it out:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Surf_Platform_-_Freemarker_Template_and_JavaScript_API" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Surf_Platform_-_Freemarker_Template_and_JavaScript_API&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2011 09:22:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-the-full-path-from-a-noderef/m-p/266611#M219741</guid>
      <dc:creator>zladuric</dc:creator>
      <dc:date>2011-03-07T09:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get the full path from a nodeRef ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-the-full-path-from-a-noderef/m-p/266612#M219742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;But I only have a UUID, how can I get it's path and redirect to it ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2011 04:18:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-the-full-path-from-a-noderef/m-p/266612#M219742</guid>
      <dc:creator>zengqingyi12</dc:creator>
      <dc:date>2011-03-09T04:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get the full path from a nodeRef ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-the-full-path-from-a-noderef/m-p/266613#M219743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ah sorry, I've misread your question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Well, for one, you can use nodeRef.parent to find out about its parent? And go up until the "Sites" reference? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are probably better ways though, you better not listen to me &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2011 09:13:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-the-full-path-from-a-noderef/m-p/266613#M219743</guid>
      <dc:creator>zladuric</dc:creator>
      <dc:date>2011-03-09T09:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get the full path from a nodeRef ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-the-full-path-from-a-noderef/m-p/266614#M219744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's not a trivial problem to solve. We have an internal* helper webscript which you could use if you're on V3.3 or newer (it was introduced with Rules support I believe).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's in the alfresco.war, at &lt;/SPAN&gt;&lt;STRONG&gt;/slingshot/doclib/node/{store_type}/{store_id}/{id}/location&lt;/STRONG&gt;&lt;SPAN&gt;, i.e. use the usual client-side or web tier remote calls.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your other, much easier, option is to navigate to the document-details page instead, which just takes a nodeRef argument.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(* internal webscripts are not public APIs and therefore not guaranteed to work between upgrades)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2011 09:22:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-the-full-path-from-a-noderef/m-p/266614#M219744</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2011-03-09T09:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get the full path from a nodeRef ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-the-full-path-from-a-noderef/m-p/266615#M219745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK, thanks, finally I use regular expression to capture the "Site" parameter, and generate the URL by myself, thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2011 02:21:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-the-full-path-from-a-noderef/m-p/266615#M219745</guid>
      <dc:creator>zengqingyi12</dc:creator>
      <dc:date>2011-03-11T02:21:00Z</dc:date>
    </item>
  </channel>
</rss>

