Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Manuel Miklo
Embed Login Portlet in the portlet_normal.vm
February 16, 2013 4:41 PM
Answer

Manuel Miklo

Rank: New Member

Posts: 20

Join Date: January 30, 2010

Recent Posts

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
February 16, 2013 10:37 PM
Answer

Chirag Patadia

Rank: Junior Member

Posts: 29

Join Date: February 2, 2012

Recent Posts

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
February 17, 2013 2:13 AM
Answer

Manuel Miklo

Rank: New Member

Posts: 20

Join Date: January 30, 2010

Recent Posts

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!