<?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: Display content type in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/display-content-type/m-p/150029#M104934</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;with:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;${document.type} &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it return smthing like: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{myNameSpaseURI}typeName&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Show this information isn't useful for the user…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It's possible show the title associated to type???&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Robert&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Feb 2008 15:08:58 GMT</pubDate>
    <dc:creator>robby</dc:creator>
    <dc:date>2008-02-15T15:08:58Z</dc:date>
    <item>
      <title>Display content type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/display-content-type/m-p/150028#M104933</link>
      <description>Hi all,it's possible displaying the content type of a file in a freemarker template??Smthing like:&amp;lt;#list space.children as child&amp;gt;&amp;nbsp;&amp;nbsp; &amp;lt;#if child.isDocument&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ${child.properties.type}&amp;nbsp;&amp;nbsp; &amp;lt;/#if&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/#list&amp;gt;In a list of documents it's useful show the type of a document.Bes</description>
      <pubDate>Fri, 15 Feb 2008 15:02:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/display-content-type/m-p/150028#M104933</guid>
      <dc:creator>robby</dc:creator>
      <dc:date>2008-02-15T15:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: Display content type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/display-content-type/m-p/150029#M104934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;with:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;${document.type} &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it return smthing like: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{myNameSpaseURI}typeName&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Show this information isn't useful for the user…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It's possible show the title associated to type???&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Robert&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2008 15:08:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/display-content-type/m-p/150029#M104934</guid>
      <dc:creator>robby</dc:creator>
      <dc:date>2008-02-15T15:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Display content type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/display-content-type/m-p/150030#M104935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I do not think this is possible out of the box, but if you have basic java knowledge it is relatively easy to extend javascript api with your own utility class which will provide such functionality&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/JavaScript_API#Adding_Custom_Script_APIs" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/JavaScript_API#Adding_Custom_Script_APIs&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Denis&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2008 16:11:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/display-content-type/m-p/150030#M104935</guid>
      <dc:creator>dhalupa</dc:creator>
      <dc:date>2008-02-15T16:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Display content type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/display-content-type/m-p/150031#M104936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I had such problem and, since the API does not provide with the possibility to show the title (this should be a JIRA feature request):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; I added a little extra code (if .. then .. elseif…else) in the template that does the conversion between type: mymodel:invoice and the types title: Invoice.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is a litle bit ugly but it does the trick and it is esay and quick.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2008 18:55:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/display-content-type/m-p/150031#M104936</guid>
      <dc:creator>mabayona</dc:creator>
      <dc:date>2008-02-15T18:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Display content type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/display-content-type/m-p/150032#M104937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Print your code plz..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Robert&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2008 08:36:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/display-content-type/m-p/150032#M104937</guid>
      <dc:creator>robby</dc:creator>
      <dc:date>2008-02-18T08:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Display content type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/display-content-type/m-p/150033#M104938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's not quite clear to me what is the exact problem here:&amp;nbsp; is the MIME &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;type of&amp;nbsp; the content not sufficient? e.g.:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;table &amp;gt;&amp;lt;tbody &amp;gt;&lt;BR /&gt;&amp;lt;#list space.children as child&amp;gt;&lt;BR /&gt;&amp;lt;#if child.isDocument&amp;gt;&lt;BR /&gt;&amp;lt;tr &amp;gt;&lt;BR /&gt;&amp;lt;td &amp;gt;${child.name}&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;lt;td &amp;gt;${child.mimetype}&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;lt;/tr&amp;gt;&lt;BR /&gt;&amp;lt;/#if&amp;gt;&lt;BR /&gt;&amp;lt;/#list&amp;gt; &lt;BR /&gt;&amp;lt;/tbody&amp;gt;&amp;lt;/table&amp;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;/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;EM&gt;N.B. make sure you wrap code like this with enough checks for &lt;BR /&gt;existence and non-null values to keep Freemarker happy — I've left them&lt;BR /&gt; out for clarity.&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it that you want to display a more 'friendly' name for the type, e.g.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"PDF document"?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2008 22:11:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/display-content-type/m-p/150033#M104938</guid>
      <dc:creator>sacco</dc:creator>
      <dc:date>2008-02-18T22:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Display content type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/display-content-type/m-p/150034#M104939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It is alfresco object type title which is needed, not mime type&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2008 22:17:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/display-content-type/m-p/150034#M104939</guid>
      <dc:creator>dhalupa</dc:creator>
      <dc:date>2008-02-18T22:17:51Z</dc:date>
    </item>
  </channel>
</rss>

