<?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: custom content viewer in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/custom-content-viewer/m-p/13557#M5696</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What is the best way to add a custom content viewer?&lt;BR /&gt;&lt;BR /&gt;I'm new to Alfresco and a bit lost in the sea of Alfresco documentation.&lt;BR /&gt;&lt;BR /&gt;I have to deal with text files generated from a legacy ERP system.&amp;nbsp; I want users to view those text files directly on the browser. Those text files need to be reformatted before they can be shown on the browser. Some of the text files are very large. It would be nice to let users interactively select to view different sections within the text file.&lt;BR /&gt;&lt;BR /&gt;So the viewer could be a servlet that knows how to display the text files and interact with users. How do I integrate this servlet to Afresco?&lt;BR /&gt;&lt;BR /&gt;Should I add a new aspect and a custom action?&lt;BR /&gt;Or I should just hack and put another link in the link section of document details. This link would point to my custom servlet.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;The "viewer" was linked to the mime type the last time I looked. I had an issue once where I wanted some XML documents to be viewed with one viewer and others to be viewed with another (specifically… if I had a reference to an XSL i wanted to us a rich editor, if I did not, I wanted the vanilla editor.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Check out this link as an example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.alfresco.org/forums/viewtopic.php?t=396&amp;amp;highlight=xml+editor" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/forums/viewtopic.php?t=396&amp;amp;highlight=xml+editor&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The example is a little bit complicated because it replaces some of the hard coded case logic with XML configurable "pipelines" which you can think of as inverson of control at the method level.&amp;nbsp;&amp;nbsp; But it should provide you with what you need to know.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Feb 2006 15:17:10 GMT</pubDate>
    <dc:creator>rdanner</dc:creator>
    <dc:date>2006-02-21T15:17:10Z</dc:date>
    <item>
      <title>custom content viewer</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-content-viewer/m-p/13556#M5695</link>
      <description>What is the best way to add a custom content viewer?I'm new to Alfresco and a bit lost in the sea of Alfresco documentation.I have to deal with text files generated from a legacy ERP system.&amp;nbsp; I want users to view those text files directly on the browser. Those text files need to be reformatted befor</description>
      <pubDate>Tue, 21 Feb 2006 11:29:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-content-viewer/m-p/13556#M5695</guid>
      <dc:creator>pichai</dc:creator>
      <dc:date>2006-02-21T11:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: custom content viewer</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-content-viewer/m-p/13557#M5696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What is the best way to add a custom content viewer?&lt;BR /&gt;&lt;BR /&gt;I'm new to Alfresco and a bit lost in the sea of Alfresco documentation.&lt;BR /&gt;&lt;BR /&gt;I have to deal with text files generated from a legacy ERP system.&amp;nbsp; I want users to view those text files directly on the browser. Those text files need to be reformatted before they can be shown on the browser. Some of the text files are very large. It would be nice to let users interactively select to view different sections within the text file.&lt;BR /&gt;&lt;BR /&gt;So the viewer could be a servlet that knows how to display the text files and interact with users. How do I integrate this servlet to Afresco?&lt;BR /&gt;&lt;BR /&gt;Should I add a new aspect and a custom action?&lt;BR /&gt;Or I should just hack and put another link in the link section of document details. This link would point to my custom servlet.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;The "viewer" was linked to the mime type the last time I looked. I had an issue once where I wanted some XML documents to be viewed with one viewer and others to be viewed with another (specifically… if I had a reference to an XSL i wanted to us a rich editor, if I did not, I wanted the vanilla editor.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Check out this link as an example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.alfresco.org/forums/viewtopic.php?t=396&amp;amp;highlight=xml+editor" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/forums/viewtopic.php?t=396&amp;amp;highlight=xml+editor&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The example is a little bit complicated because it replaces some of the hard coded case logic with XML configurable "pipelines" which you can think of as inverson of control at the method level.&amp;nbsp;&amp;nbsp; But it should provide you with what you need to know.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2006 15:17:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-content-viewer/m-p/13557#M5696</guid>
      <dc:creator>rdanner</dc:creator>
      <dc:date>2006-02-21T15:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: custom content viewer</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-content-viewer/m-p/13558#M5697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks rdanner. Your framework is nice, but I guess I need a simpler solution, as I only need a viewer, not an editor. So it could just be a modless form on a seperate window.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So far, I think the "View in Browser" link could be the integration point. I could write a servlet to handle /download/direct/* url. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Your suggestion about mimetype is helpful. I can use the mimetype service to determine whether to forward the request to another view or forward it to the original DownloadContentServlet.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2006 06:12:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-content-viewer/m-p/13558#M5697</guid>
      <dc:creator>pichai</dc:creator>
      <dc:date>2006-02-24T06:12:08Z</dc:date>
    </item>
  </channel>
</rss>

