<?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 a custom content type? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/display-a-custom-content-type/m-p/240636#M193766</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Unfortunately, the type is not a property like other properties in the data model. The type comes from the Node's getType() method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The last time I had to do this, I extended the DocumentDetailsBean to add a getContentType() method. The method asked the Node for its type, then looked up the human friendly title using the DictionaryService and returned that as a String.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With the new method in the extended bean, I was then able to extend the document-details.jsp with my own version that added something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;h:outputText value="#{msg.content_type}" /&amp;gt;: &amp;lt;h:outputText value="#{DocumentDetailsBean.contentType}" /&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;SPAN&gt;just below the content name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That was version 2.1. Maybe there's a quicker/better way to do it in 3.x, but I have a hunch you'll have to use the same technique. I don't know why this isn't OOTB. It is often helpful to know what type of object you're dealing with. This customization isn't terrible, but it should at least be configurable or something.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Jun 2009 21:29:02 GMT</pubDate>
    <dc:creator>jpotts</dc:creator>
    <dc:date>2009-06-19T21:29:02Z</dc:date>
    <item>
      <title>display a custom content type?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/display-a-custom-content-type/m-p/240635#M193765</link>
      <description>Hi,I am unable to display the name of a custom content type (custom:mosaic) when listing a document's properties.&amp;nbsp; I have found examples that allow me to show the mime type, size, and various custom properties.&amp;nbsp; What show-property line would I need?&amp;nbsp; Here is a section of code that I tried in my web-</description>
      <pubDate>Fri, 19 Jun 2009 18:47:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/display-a-custom-content-type/m-p/240635#M193765</guid>
      <dc:creator>mbailen</dc:creator>
      <dc:date>2009-06-19T18:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: display a custom content type?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/display-a-custom-content-type/m-p/240636#M193766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Unfortunately, the type is not a property like other properties in the data model. The type comes from the Node's getType() method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The last time I had to do this, I extended the DocumentDetailsBean to add a getContentType() method. The method asked the Node for its type, then looked up the human friendly title using the DictionaryService and returned that as a String.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With the new method in the extended bean, I was then able to extend the document-details.jsp with my own version that added something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;h:outputText value="#{msg.content_type}" /&amp;gt;: &amp;lt;h:outputText value="#{DocumentDetailsBean.contentType}" /&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;SPAN&gt;just below the content name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That was version 2.1. Maybe there's a quicker/better way to do it in 3.x, but I have a hunch you'll have to use the same technique. I don't know why this isn't OOTB. It is often helpful to know what type of object you're dealing with. This customization isn't terrible, but it should at least be configurable or something.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2009 21:29:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/display-a-custom-content-type/m-p/240636#M193766</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2009-06-19T21:29:02Z</dc:date>
    </item>
  </channel>
</rss>

