Display PowerPoint Presentation on a Liferay Page
How to integrate a PowerPoint presentation to a portal page
Overview
Let’s say, you have a PowerPoint presentation (*.ppt/*.pptx file), and want to display it on a Liferay page. This article shows how to do it in a simple way.
Solution
1. Upload PowerPoint presentation to the Document and Media.
2. Copy the generated URL of document, sample:
3. Create a content page to display the presentation.
4. Add an HTML Fragment (or a Basic Web Content) to a page, with the following content:
<iframe src='https://view.officeapps.live.com/op/embed.aspx?src=http://liferay-demo.com/documents/20126/81075/My-Presentation.pptx/c1df7c2b-420a-262d-6ead-cb64beec90a9'
width='100%' height='600px' frameborder='0'>
</iframe>
(adjust the document URL, and iframe options according to your needs)
Enjoy 😏
iam not able to view ppt with this approach. error:An error occurred
ReplyDeleteWe're sorry, but for some reason we can't open this for you.