Foros de discusión

Popup containing portlet only

Gunnar Brinkmann, modificado hace 7 años.

Popup containing portlet only

Junior Member Mensajes: 53 Fecha de incorporación: 2/12/11 Mensajes recientes
Hello

I'm thinking about the following pattern:

- My portlet A calls another portlet B in a browser popup window
- The popup window contains only the portlet B, no portal / navigation

Can I do this, for example via using some template? (we have a custom theme)

In other words: Can I call a friendly URL for a page that comes without any Portal UI?

Usecase:
- Portal and portlet A in browser window A on screen A
- Portlet B in browser popup window B on screen B, but no "second Liferay UI"
(maximizing browser A over the two screens is no option)

Regards
Gunnar (6.2 EE SP14 PrimeFaces 5.2 Portlets)
thumbnail
Neil Griffin, modificado hace 7 años.

RE: Popup containing portlet only

Liferay Legend Mensajes: 2655 Fecha de incorporación: 27/07/05 Mensajes recientes
You can use p_p_state=pop_up (Liferay Specific, BTW) on a Liferay portlet RenderURL in a popup window. Here is an example RenderURL from the Liferay Faces Showcase at liferayfaces.org.

You should be able to get the RenderURL in a Facelet view like this:

<portlet:renderurl var="renderURL" windowState="pop_up" />
Gunnar Brinkmann, modificado hace 7 años.

RE: Popup containing portlet only

Junior Member Mensajes: 53 Fecha de incorporación: 2/12/11 Mensajes recientes
Neil GriffinYou can use p_p_state=pop_up (Liferay Specific, BTW) on a Liferay portlet RenderURL in a popup window. Here is an example RenderURL from the Liferay Faces Showcase at liferayfaces.org.

You should be able to get the RenderURL in a Facelet view like this:

<portlet:renderurl var="renderURL" windowState="pop_up" />


Hello (the one and only) Neil, thank you very much, I'll try it (may take a while, development of portlet B hasn't started so far).

Regards
Gunnar