Tribune

Home » Liferay Portal » English » 3. Development

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Manuel Miklo
Embed Login Portlet in the portlet_normal.vm
16 febbraio 2013 16.41
Risposta

Manuel Miklo

Punteggio: New Member

Messaggi: 20

Data di Iscrizione: 30 gennaio 2010

Messaggi recenti

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
Chirag Patadia
RE: Embed Login Portlet in the portlet_normal.vm
16 febbraio 2013 22.37
Risposta

Chirag Patadia

Punteggio: Junior Member

Messaggi: 29

Data di Iscrizione: 2 febbraio 2012

Messaggi recenti

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.
Manuel Miklo
RE: Embed Login Portlet in the portlet_normal.vm
17 febbraio 2013 2.13
Risposta

Manuel Miklo

Punteggio: New Member

Messaggi: 20

Data di Iscrizione: 30 gennaio 2010

Messaggi recenti

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

Participate in the State of Liferay Community 2017. Help the community and even win some prizes!