Fórum

Embed Login Portlet in the portlet_normal.vm

thumbnail
Manuel Miklo, modificado 11 Anos atrás.

Embed Login Portlet in the portlet_normal.vm

New Member Postagens: 20 Data de Entrada: 30/01/10 Postagens Recentes
Hi togheter
i tried today to insert the login hard coded in the vm template. But i dont had have success it prints me out ever the $theme.include without parsing. And a stacktrace that it couldnt find the jsp file. I tried it on different ways.
First i copied the jsp from the loginportlet in _diff/jsp/navigation.jsp and all file which are includet. After i inserted following entry. But it coudnt find the file.
#if (!$is_signed_in)
$theme.include($themeServletContext, "/jsp/navigation.jsp")
#end

Then i tried followin, but "same" mistake.

#if (!$is_signed_in)
$theme.include($themeServletContext, "/html/portlet/login/navigation.jsp")
#end
And last i tried $theme.include("/jsp/navigation.jsp") but same result. It print mee ever the $theme.include($themeServletContext, "/jsp/navigation.jsp") statemen in the browser insteed parsing the file. But i think that would be because it didnt find this files.

My question is now how i could add navigation.jsp and login.jsp in the vm template?
Is there a way to da that?
Thanks.

Greats and regards
Manuel
thumbnail
Chirag Patadia, modificado 11 Anos atrás.

RE: Embed Login Portlet in the portlet_normal.vm

Junior Member Postagens: 29 Data de Entrada: 03/02/12 Postagens Recentes
Hi Manuel,

You can embed Login portlet in the portlet-normal.vm file as follows:

$theme.runtime("58")

where 58 is the Login portlet ID.

Best Regards,
Chirag Patadia.
thumbnail
Manuel Miklo, modificado 11 Anos atrás.

RE: Embed Login Portlet in the portlet_normal.vm

New Member Postagens: 20 Data de Entrada: 30/01/10 Postagens Recentes
Hi
thank you so much for the fast response.
My "problem" would be, that i would divide the login portlet. Means i would insert the "navigation.jsp" from the login-portelt to the top, and in an other div-region.
That i could put the "loginnavigation" in a top-bar, and the fields a little bit at an other position. So it would be nice if i could insert the navigation.jsp and the login.jsp as own files.
Is that possible?

Thanks and regards
Manuel