Foren
Inserting new custom page in First Time user Login flow
Chaitanya Kumar Cheekate, geändert vor 10 Jahren.
Inserting new custom page in First Time user Login flow
Junior Member Beiträge: 54 Beitrittsdatum: 16.02.12 Neueste Beiträge
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.
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.
Murali Karteek, geändert vor 9 Jahren.
RE: Inserting new custom page in First Time user Login flow
Junior Member Beiträge: 37 Beitrittsdatum: 05.03.12 Neueste Beiträge
Hi Chaitanya,
Do you got any solution for your requirement? If so can you share your Ideas?
Thanks & Regards,
Murali Karteek
Do you got any solution for your requirement? If so can you share your Ideas?
Thanks & Regards,
Murali Karteek
Joel Peltonen, geändert vor 8 Jahren.
RE: Inserting new custom page in First Time user Login flow
Junior Member Beiträge: 28 Beitrittsdatum: 22.01.15 Neueste Beiträge
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?
Tomas Polesovsky, geändert vor 7 Jahren.
RE: Inserting new custom page in First Time user Login flow
Liferay Master Beiträge: 676 Beitrittsdatum: 13.02.09 Neueste Beiträge
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:
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:
That's it, in short
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