Message Boards

Connecting liferay's sign in into my configuration

Piotr Krzesniak, modified 3 Years ago.

Connecting liferay's sign in into my configuration

New Member Posts: 23 Join Date: 7/24/20 Recent Posts
Hello, i would like to add link in default liferay's "sign in"  to my own registration portlet. I've overridden the login portlet, so i can configure it as i want to, but i dont know how to link it to my portlet. This means i am looking for the functionality similar to a href . Should i use renderUrl and how? 
thumbnail
Mohammed Yasin, modified 3 Years ago.

RE: Connecting liferay's sign in into my configuration

Liferay Master Posts: 591 Join Date: 8/8/14 Recent Posts
Hi ,You can use liferay portlet render url  , provide the plid and portlet name which you want to redirect to 
<liferay-portlet:renderurl var="registratonURL" plid="" portletname="">
&nbsp;&nbsp; &nbsp;<portlet:param name="" value="" />
</liferay-portlet:renderurl>
Piotr Krzesniak, modified 3 Years ago.

RE: Connecting liferay's sign in into my configuration

New Member Posts: 23 Join Date: 7/24/20 Recent Posts
Okay, thank you , now its working fine. But i have only one qustion. How can i get the portletName and the plid of the registration portlet in login's jsp page. Currently, i take this properties in my registration's jsp using these lines of code: 
themeDisplay.getPlid();
themeDisplay.getPortletDisplay().getPortletName();

So, these values are hardcoded in my login page. 
thumbnail
Mohammed Yasin, modified 3 Years ago.

RE: Connecting liferay's sign in into my configuration

Liferay Master Posts: 591 Join Date: 8/8/14 Recent Posts
Piotr Krzesniak:

Okay, thank you , now its working fine. But i have only one qustion. How can i get the portletName and the plid of the registration portlet in login's jsp page. Currently, i take this properties in my registration's jsp using these lines of code: 
themeDisplay.getPlid();
themeDisplay.getPortletDisplay().getPortletName();

theme display will provide you with current plid and portletname , to get registration portlet plid you need to use LayoutLocalservice.getLayoutByFriendlyURL(long groupId, boolean privateLayout, String friendlyURL) .
Portlet Name can be hard coded or referred from RegistrationPortletKey .