<?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 Getting Content Type of a document in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/getting-content-type-of-a-document/m-p/227907#M181037</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;I have a lot of content types defined in my Alfresco deployment. I have a requrement to display the custom content type of the document in the properties tab of the selected document along with its custom properties. My requirement is to invoke a web script to get this information. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did not find any readily available web scripts for doing this. Can any one help me with any pointers as to how I can retrieve this information?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Srikant&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.introspeqt.com" rel="nofollow noopener noreferrer"&gt;http://www.introspeqt.com&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Download Document Capture for Alfresco &lt;/SPAN&gt;&lt;A href="http://www.introspeqt.com/iCapture.htm" rel="nofollow noopener noreferrer"&gt;http://www.introspeqt.com/iCapture.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Mar 2010 13:51:51 GMT</pubDate>
    <dc:creator>stallapragada</dc:creator>
    <dc:date>2010-03-17T13:51:51Z</dc:date>
    <item>
      <title>Getting Content Type of a document</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getting-content-type-of-a-document/m-p/227907#M181037</link>
      <description>HiI have a lot of content types defined in my Alfresco deployment. I have a requrement to display the custom content type of the document in the properties tab of the selected document along with its custom properties. My requirement is to invoke a web script to get this information. I did not find</description>
      <pubDate>Wed, 17 Mar 2010 13:51:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getting-content-type-of-a-document/m-p/227907#M181037</guid>
      <dc:creator>stallapragada</dc:creator>
      <dc:date>2010-03-17T13:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Content Type of a document</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getting-content-type-of-a-document/m-p/227908#M181038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Srikant,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Were you able to get the Properties of the document using web scripts. Even i am faced with the issue&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) how to get the version of the document&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) how to retrieve the custom properties. i have added some properties(eg price) in customModel.xml as an aspect. How to retrieve the custom properties in web scripts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) how to attach a thumbnail to the document while upload and how to retrieve this information using web scripts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Raghu.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Mar 2010 09:30:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getting-content-type-of-a-document/m-p/227908#M181038</guid>
      <dc:creator>krishr</dc:creator>
      <dc:date>2010-03-31T09:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Content Type of a document</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getting-content-type-of-a-document/m-p/227909#M181039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You may need to develop your own custom web script.&amp;nbsp; In the controller logic you will need to select the documents using a Lucene query and then for each returned result retrieve the properties you need.&amp;nbsp; For example, the document type can be accessed via the var mytype = document.properties.type statement in Javascript.&amp;nbsp; Other custom properties are retrieved using document.properties["yournamespace:yourcustomproperty"]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/3.2_JavaScript_API" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/3.2_JavaScript_API&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Mar 2010 21:15:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getting-content-type-of-a-document/m-p/227909#M181039</guid>
      <dc:creator>stevegreenbaum</dc:creator>
      <dc:date>2010-03-31T21:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Content Type of a document</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getting-content-type-of-a-document/m-p/227910#M181040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Guys, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alfresco Share calls webscripts on the Alfresco Repository for everything it does. List of all webscripts in the repo is available at &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.alfresco.com/{yourhost}:{port}/alfresco/service/index" rel="nofollow noopener noreferrer"&gt;http://{yourhost}:{port}/alfresco/service/index&lt;/A&gt;&lt;SPAN&gt;. If you use Firefox and Firebug (or the developer tools in other browsers) when navigating Share, you'll see the REST calls to these webscripts. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are webscripts available for everything you've described. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ainga&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Mar 2010 21:48:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getting-content-type-of-a-document/m-p/227910#M181040</guid>
      <dc:creator>zaizi</dc:creator>
      <dc:date>2010-03-31T21:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Content Type of a document</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getting-content-type-of-a-document/m-p/227911#M181041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ainga,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could u show some pointers on the exact syntax or exact URL to get the version, attach thumbnail and retrieve thumbnail, to retrieve custom properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i am modifying the folder.get.atom.ftl&amp;nbsp; as below&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;ArrayOfAppStoreItems xmlns="&lt;/SPAN&gt;&lt;A href="http://www.w3.org/2005/Atom" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2005/Atom&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;generator version="${server.version}"&amp;gt;Alfresco (${server.edition})&amp;lt;/generator&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;title&amp;gt;Folder: ${folder.displayPath}/${folder.name}&amp;lt;/title&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;updated&amp;gt;${xmldate(date)}&amp;lt;/updated&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;icon&amp;gt;${absurl(url.context)}/images/logo/AlfrescoLogo16.ico&amp;lt;/icon&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;#list folder.children as child&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;AppStoreItems&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Title&amp;gt;${child.name}&amp;lt;/Title&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;#if child.isContainer&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;DownloadURL rel="alternate" href="${absurl(url.serviceContext)}/sample/Contentdescr/folder&amp;lt;@encodepath node=child/&amp;gt;"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;#else&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;DownloadURL rel="alternate" href="${absurl(url.serviceContext)}/api/node/content/${child.nodeRef.storeRef.protocol}/&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;${child.nodeRef.storeRef.identifier}/${child.nodeRef.id}/${child.name?url}"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/#if&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;iconPath&amp;gt;${absurl(url.context)}${child.icon16}&amp;lt;/iconPath&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;id&amp;gt;urn:uuid:${child.id}&amp;lt;/id&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;updated&amp;gt;${xmldate(child.properties.modified)}&amp;lt;/updated&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Description&amp;gt;${child.properties.description!""}&amp;lt;/Description&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Size&amp;gt;${child.properties.content.size}&amp;lt;/Size&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Version&amp;gt;&amp;lt;/Version&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Thumbnail&amp;gt;&amp;lt;/Thumbnail&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cust&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;roductPrice&amp;gt;&amp;lt;/cust&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;roductPrice&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;author&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;name&amp;gt;${child.properties.creator}&amp;lt;/name&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/author&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;/AppStoreItems&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/#list&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/ArrayOfAppStoreItems&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;#macro encodepath node&amp;gt;&amp;lt;#if node.parent?exists&amp;gt;&amp;lt;@encodepath node=node.parent/&amp;gt;/${node.name?url}&amp;lt;/#if&amp;gt;&amp;lt;/#macro&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Raghu.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Apr 2010 02:56:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getting-content-type-of-a-document/m-p/227911#M181041</guid>
      <dc:creator>krishr</dc:creator>
      <dc:date>2010-04-01T02:56:59Z</dc:date>
    </item>
  </channel>
</rss>

