Iframe in alfresco

cancel
Showing results for 
Search instead for 
Did you mean: 
malikaasen
Active Member

Iframe in alfresco

I want to use another viewer for some specific file types in alfresco, and i wondered if it is possible to replace the preview with an iframe that takes the current file and sends it to the iframe so that the file can be viewed there. Is there a way to do this?

2 Replies
angelborroy
Alfresco Employee

Re: Iframe in alfresco

Probably the safest approach is to build an FTL previewer like this one:

GitHub - cetra3/md-preview: Markdown Previews and Editing for Alfresco Share 

Hyland Developer Evangelist
malikaasen
Active Member

Re: Iframe in alfresco

Thanks for the quick reply! I'm making a temporary solution where if the file cant be previewed, the download button redirects to the site i want to view while i figure out the FTL previewer. Is there a way i can get the file by variable without adding any variables? Like simply " type="file" name="filetoupload" "?