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:


http://liferay-demo.com/documents/20126/81075/My-Presentation.pptx/c1df7c2b-420a-262d-6ead-cb64beec90a9


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)


Sample:



Enjoy 😏 

Comments

  1. iam not able to view ppt with this approach. error:An error occurred
    We're sorry, but for some reason we can't open this for you.

    ReplyDelete

Post a Comment

Popular posts from this blog

Liferay Search Container Example

Liferay DXP - max upload file size

Liferay Keycloak integration