<?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: Get current folder path in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/get-current-folder-path/m-p/230296#M183426</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Why not simply add the parent folder's description to the original response?&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;doclist.get.json.ftl&lt;/STRONG&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;#if doclist.parent??&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;#assign parentNode = doclist.parent.node&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; "nodeRef": "${parentNode.nodeRef}",&lt;BR /&gt;&amp;nbsp;&amp;nbsp; "description": "${parentNode.properties.description!""}",&lt;BR /&gt;&amp;nbsp;&amp;nbsp; …&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Then in on the client, access it using&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;this.doclistMetadata.parent.description&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;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Oct 2010 19:37:14 GMT</pubDate>
    <dc:creator>mikeh</dc:creator>
    <dc:date>2010-10-07T19:37:14Z</dc:date>
    <item>
      <title>Get current folder path</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-current-folder-path/m-p/230295#M183425</link>
      <description>Hi,I've made a web script in Alfresco to get the description of a folder: /slingshot/doclib/folderdescription/site/{site}/{container}/{path}Everythig is ok, I get the description of the my folder using http://localhost:8080/alfresco/service/slingshot/doclib/folderdescription/site/mySite/documentlibr</description>
      <pubDate>Thu, 07 Oct 2010 14:18:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-current-folder-path/m-p/230295#M183425</guid>
      <dc:creator>laurent1050</dc:creator>
      <dc:date>2010-10-07T14:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get current folder path</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-current-folder-path/m-p/230296#M183426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Why not simply add the parent folder's description to the original response?&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;doclist.get.json.ftl&lt;/STRONG&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;#if doclist.parent??&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;#assign parentNode = doclist.parent.node&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; "nodeRef": "${parentNode.nodeRef}",&lt;BR /&gt;&amp;nbsp;&amp;nbsp; "description": "${parentNode.properties.description!""}",&lt;BR /&gt;&amp;nbsp;&amp;nbsp; …&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Then in on the client, access it using&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;this.doclistMetadata.parent.description&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;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Oct 2010 19:37:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-current-folder-path/m-p/230296#M183426</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2010-10-07T19:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Get current folder path</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-current-folder-path/m-p/230297#M183427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Mike for your answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No problem to ot update &lt;/SPAN&gt;&lt;STRONG&gt;doclist.get.json.ftl&lt;/STRONG&gt;&lt;SPAN&gt;, the json content is correctly modified.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But where in share can I use &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;this.doclistMetadata.parent.description&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;I don't know in which file I can access &lt;/SPAN&gt;&lt;STRONG&gt;this.doclistMetadata…&lt;/STRONG&gt;&lt;SPAN&gt;. Is it in documentlibrary.ftl or in documentlibrary.js or smowhere else ???&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Laurent&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 08:50:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-current-folder-path/m-p/230297#M183427</guid>
      <dc:creator>laurent1050</dc:creator>
      <dc:date>2010-10-12T08:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Get current folder path</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-current-folder-path/m-p/230298#M183428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's documentlist.js&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 13:36:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-current-folder-path/m-p/230298#M183428</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2010-10-12T13:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get current folder path</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-current-folder-path/m-p/230299#M183429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Mike,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's correct, you're the king &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I'm surprised that some content is generated using javascript. It was not possible to use freemarker to generate all pages ???&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think that it's not very practical……. newbie opinion&amp;nbsp; :wink: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Laurent&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 13:10:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-current-folder-path/m-p/230299#M183429</guid>
      <dc:creator>laurent1050</dc:creator>
      <dc:date>2010-10-14T13:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: Get current folder path</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-current-folder-path/m-p/230300#M183430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We get far more flexibility using the YUI components and client-side JavaScript rather than returning HTML from Freemarker scripts on the web tier.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 13:44:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-current-folder-path/m-p/230300#M183430</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2010-10-14T13:44:07Z</dc:date>
    </item>
  </channel>
</rss>

