1

I want to add link to PDF file in web content.

and If i click on that PDF image link it will open up pop up same as document and media.

How to achieve this ?

Thanks

Hiral
  • 195
  • 1
  • 13
  • do you want to access the preview like "document and media" shows or do you want to show the actual pdf document? The later one is dependent on the browser, e.g. if it natively renders pdfs or delegates to an external pdf-viewer. The first one is dependent on the portlet you want to display the preview from: E.g. with webcontent you'd need to do something different than in your own portlets – Olaf Kock Oct 21 '13 at 20:05

1 Answers1

0

You are looking for something similar to this ?

http://www.liferay.com/community/wiki/-/wiki/Main/Preview+Generation .

Requires imagemagick to be enabled & configured properly. You could check document and media portlet view_file_entry.jsp to check how it generating preview logic & URL and use same to include for your popup.

Hope this helps !

Ankit P
  • 534
  • 4
  • 12