Foren

How to access a pdf file in Documents and Multimedia

thumbnail
Alfonso Holguin, geändert vor 11 Jahren.

How to access a pdf file in Documents and Multimedia

New Member Beiträge: 17 Beitrittsdatum: 28.05.12 Neueste Beiträge
Hello,

I would like to access my documents and multimedia from a portlet.

Exactly what I want is to save a pdf into Documents and Multimedia in Liferay Portal, and from a portlet through a special href, to open it, I put here what I do:


<a href = "<% = PATH DOCUMENTS AND MULTIMEDIA%> / MyFile.pdf />


I just want to know which class or object would give me the path (PATH DOCUMENTS AND MULTIMEDIA).

There is themeDisplay.getPathThemeImages () that gives the path to the images of the subject, even themeDisplay.getPortalURL () that gives the URL path, but not how to access documents and multimedia.

Does anyone know some other method better?

thanks

a greeting
thumbnail
Alfonso Holguin, geändert vor 11 Jahren.

RE: How to access a pdf file in Documents and Multimedia

New Member Beiträge: 17 Beitrittsdatum: 28.05.12 Neueste Beiträge
In the end I decided otherwise,

in principle have not found any class or parameter to give me the PATH to documents and multimedia, so I've done the following:

1 I access Control Panel, Documents and Multimedia
2. I choose the folder where the document or image,edit the document or image , click on getURL
3.A through getURL get the URL of the document, which is what I put on my href, and all resolved

may not be the best method, but is the only one I found

a greeting