Foren

Home » Liferay Portal » English » 3. Development

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Alfonso Holguin
How to access a pdf file in Documents and Multimedia
11. Juni 2012 04:29
Antwort

Alfonso Holguin

Rang: New Member

Nachrichten: 18

Eintrittsdatum: 28. Mai 2012

Neue 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
Alfonso Holguin
RE: How to access a pdf file in Documents and Multimedia
12. Juni 2012 04:35
Antwort

Alfonso Holguin

Rang: New Member

Nachrichten: 18

Eintrittsdatum: 28. Mai 2012

Neue 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