<?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 Get document NodeRef in field template in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/get-document-noderef-in-field-template/m-p/311889#M265019</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a custom type and a custom form to display nodes of this type on document-details page. I've written custom field template to display the property&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and my question is how can i get NodeRef of the current node in a field template?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The first thing that comes to mind is parse url.args and get itemId(nodeRef), but i think there is a better way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Nov 2014 10:34:15 GMT</pubDate>
    <dc:creator>dreambitc</dc:creator>
    <dc:date>2014-11-10T10:34:15Z</dc:date>
    <item>
      <title>Get document NodeRef in field template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-document-noderef-in-field-template/m-p/311889#M265019</link>
      <description>Hi all!I have a custom type and a custom form to display nodes of this type on document-details page. I've written custom field template to display the propertyand my question is how can i get NodeRef of the current node in a field template?The first thing that comes to mind is parse url.args and ge</description>
      <pubDate>Mon, 10 Nov 2014 10:34:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-document-noderef-in-field-template/m-p/311889#M265019</guid>
      <dc:creator>dreambitc</dc:creator>
      <dc:date>2014-11-10T10:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Get document NodeRef in field template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-document-noderef-in-field-template/m-p/311890#M265020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think your approach would work if you edit the properties from the document details page, but I don't think it would from the document library page with the actions in the right of the document.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I dug through the Alfresco code and I can see the picker.inc.ftl template using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;#if form.mode == "edit" &amp;amp;&amp;amp; args.itemId??&amp;gt;currentItem: "${args.itemId?js_string}",&amp;lt;/#if&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I guess &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;args.itemId&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; might be what you need&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 13:32:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-document-noderef-in-field-template/m-p/311890#M265020</guid>
      <dc:creator>scouil</dc:creator>
      <dc:date>2014-11-10T13:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Get document NodeRef in field template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-document-noderef-in-field-template/m-p/311891#M265021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Scouil, thanks a lot Bro, it works &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>Tue, 11 Nov 2014 08:40:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-document-noderef-in-field-template/m-p/311891#M265021</guid>
      <dc:creator>dreambitc</dc:creator>
      <dc:date>2014-11-11T08:40:44Z</dc:date>
    </item>
  </channel>
</rss>

