cancel
Showing results for 
Search instead for 
Did you mean: 

Calling web-preview script from custom page

gmccullough
Champ on-the-rise
Champ on-the-rise
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">
</div>      

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
gene
1 REPLY 1

gmccullough
Champ on-the-rise
Champ on-the-rise
found this post, https://forums.alfresco.com/forum/developer-discussions/alfresco-share-development/edit-metadata-vie..., and I've got the component trying to load now.  Just need some additional includes now, thanks though.