Customizing through hooks is possible but it is highly possible that we may get stuck at some point due to limitations of how much we can override the out-of-the-box stuff in hooks. Liferay provides much easier way achieve what we want to which is as follows:
- Create a Custom Login Portlet as a plugin. This will give you a free hand to implement any number of actions and pages in the use case. Consider the name of your portlet is MyCustomLogin
- Create a new page on Guest Community and drag and drop MyCustomLogin. Consider you created this page with friendly url as login
- Mark this new page as hidden (Optional)
- Make the following entry in portal-ext.properties: auth.login.url=/web/guest/login and auth.login.portlet.name=MyCustomLogin
- Restart the server
No comments:
Post a Comment