Foros de discusión

Inserting new custom page in First Time user Login flow

Chaitanya Kumar Cheekate, modificado hace 10 años.

Inserting new custom page in First Time user Login flow

Junior Member Mensajes: 54 Fecha de incorporación: 16/02/12 Mensajes recientes
When a user login for the 1st time, The following is the flow
1. terms of use
2. new password
3. reminder question

My requirement is to show one more custom page as 4th page. I am using Liferay 6.2 CE GA1.

Can anybody help me. Thanks in advance.
thumbnail
Murali Karteek, modificado hace 9 años.

RE: Inserting new custom page in First Time user Login flow

Junior Member Mensajes: 37 Fecha de incorporación: 5/03/12 Mensajes recientes
Hi Chaitanya,

Do you got any solution for your requirement? If so can you share your Ideas?

Thanks & Regards,
Murali Karteek
thumbnail
Joel Peltonen, modificado hace 8 años.

RE: Inserting new custom page in First Time user Login flow

Junior Member Mensajes: 28 Fecha de incorporación: 22/01/15 Mensajes recientes
Not sure how this forum feels about necromancy such as this, but.... I, too, have the same dilemma and as of yet have not found anything helpful. Did you? Has someone? Any hints?
thumbnail
Tomas Polesovsky, modificado hace 8 años.

RE: Inserting new custom page in First Time user Login flow

Liferay Master Mensajes: 676 Fecha de incorporación: 13/02/09 Mensajes recientes
Hi,

I hope nobody's dead here?!

The problem is that the paths are hardcoded in PortalRequestProcessor class.

What would help is Ext plugin:

Inside struts-config-ext.xml specify:
<action path="/portal/my_fourth_step" type="com.my.StrutsAction" />
<controller processorClass="com.my.MyPortalRequestProcessor" contentType="text/html; charset=UTF-8" />


Implement com.my.MyPortalRequestProcessor similar to PortalRequestProcessor.processPath:
* Get current user
* Check if is signed in
* Check if the 4th step is needed and in such case return "/portal/my_fourth_step"

Implement com.my.StrutsAction as org.apache.struts.action.Action and add your logic here and render the page.

If you'd like to forward from the StrutsAction to a JSP instead, you need to add the JSP into Ext plugin and create tiles-defs-ext.xml with:
	<definition name="my_fourth_step" extends="portal">
		<put name="title" value="my-title" />
		<put name="content" value="/my.jsp" />
	</definition>


That's it, in short emoticon