<?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 Document Preview configuration with webscript in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/document-preview-configuration-with-webscript/m-p/305422#M258552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a javscript based webscript using which user can upload files, create folders and retrieve uploaded files and their respective metadata. Now I want to enable a functionality for user to preview the uploaded files in Document Preview Pane of share console. Unfortunately I couldn't able to find any builtin webscript in alfresco console( &amp;lt;a&amp;gt;&lt;/SPAN&gt;&lt;A href="http://172.20.3.63:8080/alfresco/s/index" rel="nofollow noopener noreferrer"&gt;http://172.20.3.63:8080/alfresco/s/index&lt;/A&gt;&lt;SPAN&gt;&amp;lt;/a&amp;gt;). Or any javascript api. I did able to find webscript in share console( &amp;lt;a&amp;gt;&lt;/SPAN&gt;&lt;A href="http://http://172.20.3.63:8080/share/page/index" rel="nofollow noopener noreferrer"&gt;http://http://172.20.3.63:8080/share/page/index&lt;/A&gt;&lt;SPAN&gt; &amp;lt;/a&amp;gt;) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;a&amp;gt;&lt;/SPAN&gt;&lt;A href="http://http://172.20.3.63:8080/share/page/components/preview/web-preview?nodeRef=workspace://SpacesStore/d6e102a7-a0f1-4a20-ac05-387bb3636529" rel="nofollow noopener noreferrer"&gt;http://http://172.20.3.63:8080/share/page/components/preview/web-preview?nodeRef=workspace://SpacesStore/d6e102a7-a0f1-4a20-ac05-387bb3636529&lt;/A&gt;&lt;SPAN&gt;&amp;lt;/a&amp;gt; But result is a blank webpage. I want to allow user to preview the file based on the authentication of my webscript which is based on alfresco ticket. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestion to achieve aforementioned functionality? Thanks in advance and my apology for such a basic topic as I am a newbie in Alfresco. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jul 2016 13:19:26 GMT</pubDate>
    <dc:creator>bilalsaeed</dc:creator>
    <dc:date>2016-07-25T13:19:26Z</dc:date>
    <item>
      <title>Document Preview configuration with webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/document-preview-configuration-with-webscript/m-p/305422#M258552</link>
      <description>I have a javscript based webscript using which user can upload files, create folders and retrieve uploaded files and their respective metadata. Now I want to enable a functionality for user to preview the uploaded files in Document Preview Pane of share console. Unfortunately I couldn't able to find</description>
      <pubDate>Mon, 25 Jul 2016 13:19:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/document-preview-configuration-with-webscript/m-p/305422#M258552</guid>
      <dc:creator>bilalsaeed</dc:creator>
      <dc:date>2016-07-25T13:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Document Preview configuration with webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/document-preview-configuration-with-webscript/m-p/305423#M258553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This use case is something that would be easy to implement as an Aikau page in Share... you've said you want to create a WebScript though, rather than a page - is there a particular reason for this? How are you hoping for your end users to access this new feature?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generating previews is really simple with Aikau as all you need is the "nodeRef" of the content you want to preview. There is an &lt;A href="https://dev.alfresco.com/resource/docs/aikau-jsdoc/AlfDocumentPreview.html" rel="nofollow noopener noreferrer"&gt;AlfDocumentPreview&lt;/A&gt; widget you can use which is demostrated on the &lt;A href="https://aikau-sandpit.alfresco.com/aikau-sandpit/page/na/ws/AlfDocumentPreview" rel="nofollow noopener noreferrer"&gt;Aikau Sandpit&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is also some useful information on the &lt;A href="https://github.com/Alfresco/Aikau/blob/develop/tutorial/chapters/About.md" rel="nofollow noopener noreferrer"&gt;Aikau tutorial on GitHub&lt;/A&gt; in how you can use this widget... in fact, working through the tutorial will give you a good idea of how to create pages for Share using Aikau.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the &lt;A _jive_internal="true" href="https://community.alfresco.com/community/ecm/blog/2016/04/12/aikau-1063-support-for-versioned-library-imports" rel="nofollow noopener noreferrer"&gt;doclib.lib.js import file&lt;/A&gt; to help you build as much or as little of a Document Library to viewing and uploading the content.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd recommend that you work through the tutorial (or at least read through it) and then have a go and using the DocLib import - if you have any questions then please add follow up questions here or start a new thread.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2016 16:06:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/document-preview-configuration-with-webscript/m-p/305423#M258553</guid>
      <dc:creator>ddraper</dc:creator>
      <dc:date>2016-09-15T16:06:07Z</dc:date>
    </item>
  </channel>
</rss>

