<?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: Accessing the contentUrl with Javascript in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/accessing-the-contenturl-with-javascript/m-p/260889#M214019</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;what script are you trying to use?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jul 2011 19:24:25 GMT</pubDate>
    <dc:creator>craig_michael_n</dc:creator>
    <dc:date>2011-07-27T19:24:25Z</dc:date>
    <item>
      <title>Accessing the contentUrl with Javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-the-contenturl-with-javascript/m-p/260888#M214018</link>
      <description>Hey,What I'm trying to do is write a script that as part of it's functionality needs to list the actual file locations on disk of a piece of content in alfresco. When you try to access the content property, instead of the string that shows in the node browser, which is something like:contentUrl=stor</description>
      <pubDate>Wed, 27 Jul 2011 15:29:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-the-contenturl-with-javascript/m-p/260888#M214018</guid>
      <dc:creator>username</dc:creator>
      <dc:date>2011-07-27T15:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing the contentUrl with Javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-the-contenturl-with-javascript/m-p/260889#M214019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;what script are you trying to use?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2011 19:24:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-the-contenturl-with-javascript/m-p/260889#M214019</guid>
      <dc:creator>craig_michael_n</dc:creator>
      <dc:date>2011-07-27T19:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing the contentUrl with Javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-the-contenturl-with-javascript/m-p/260890#M214020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What do you mean? It's a custom javascript script I'm writing. It could be anything, I'm just wondering how to access that particular string when accessing the content property(which is on every piece of content in alfresco).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;where file is a piece of content&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;var doc = space.createFile("test.txt");&lt;BR /&gt;var c = file.properties;&lt;BR /&gt;for(a in c){&lt;BR /&gt;if(a == "{&lt;A href="http://www.alfresco.org/model/content/1.0}content" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}content&lt;/A&gt;"){&lt;BR /&gt;doc.content += c[a];&lt;BR /&gt;}&lt;BR /&gt;}&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;That's just an example of what I mean. The content property will be returned as a string in this form&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;org.alfresco.repo.jscript.ScriptNode$ScriptContentData@180ae73&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;Rather than this&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;contentUrl=store://2011/7/20/17/21/82b0bc49-ef9e-4827-a673-8fcf1f66c745.bin|mimetype=application/pdf|size=33792|encoding=utf-8|locale=en_GB_&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;Which is what you see as the value of the content property in the node browser.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2011 20:34:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-the-contenturl-with-javascript/m-p/260890#M214020</guid>
      <dc:creator>username</dc:creator>
      <dc:date>2011-07-27T20:34:02Z</dc:date>
    </item>
  </channel>
</rss>

