AnsweredAssumed Answered

Calling web-preview script from custom page

Question asked by gmccullough on Nov 6, 2014
Latest reply on Nov 6, 2014 by gmccullough
I've successfully implemented a custom Share page which can preview a supported file from the repository using the WebPreviewer.swf file.  But I need to be able to preview other types of files as well, and I understand that uses a supported file that gets generated by alfresco (pdf2swf, which i got working on my development environment as well, works for the standard Share preview).  I'd prefer to just call /component/preview/web-previewer, the same script used by the document-details page, in my own .ftl page, which is at /share/page/mypage, but that isn't working for me.  Is it possible?  I've seen the new configuration for mime types and previewers, and I'd like to take advantage of that logic, without reinventing the wheel.

what I get is:
<div id="unbound-region-web-preview">

from my include <@region id="web-preview" scope="global"/> (also tried template and page scope, same).  I'm developing this from an amp with maven sdk for version 5.0.a, if it makes a difference.

Thanks in advance