Fórumok

Embed Login Portlet in the portlet_normal.vm

thumbnail
Manuel Miklo, módosítva 11 év-val korábban

Embed Login Portlet in the portlet_normal.vm

New Member Bejegyzések: 20 Csatlakozás dátuma: 2010.01.30. Legújabb bejegyzések
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, módosítva 11 év-val korábban

RE: Embed Login Portlet in the portlet_normal.vm

Junior Member Bejegyzések: 29 Csatlakozás dátuma: 2012.02.03. Legújabb bejegyzések
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, módosítva 11 év-val korábban

RE: Embed Login Portlet in the portlet_normal.vm

New Member Bejegyzések: 20 Csatlakozás dátuma: 2010.01.30. Legújabb bejegyzések
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