Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Default Landing Page
On Control Panel > Portal > Settings > General I found a field "Default Landing Page",
tooltip suggests that path will be the path on where a user is redirect after login.
I create a site named "communityproject" and I write in landing filed "/web/communityproject/home",
but when I login with my user (that is member of this community) I'm redirect on "/web/marco/home",
why?
which comfigurations I have to check also?
Thanks
tooltip suggests that path will be the path on where a user is redirect after login.
I create a site named "communityproject" and I write in landing filed "/web/communityproject/home",
but when I login with my user (that is member of this community) I'm redirect on "/web/marco/home",
why?
which comfigurations I have to check also?
Thanks
Hi Marco,
Which version are you using? Portal 5.2.x? Social Office 1.5b?
Some behaviors would be different in both Portal and SO, since hooks are applied in SO.
Just verifying similar scenario in SO 1.5b, it is working fine at
Server URL:
http://liferay.cignex.com
An account from LDAP:
jane/jane
Or create new account on fly.
Oh, one second, I got the same - due to the hooks of so-portlet.
Jonas Yuan
Liferay Portal 5.2 Systems Development
Liferay Portal Enterprise Intranets
Which version are you using? Portal 5.2.x? Social Office 1.5b?
Some behaviors would be different in both Portal and SO, since hooks are applied in SO.
Just verifying similar scenario in SO 1.5b, it is working fine at
Server URL:
http://liferay.cignex.com
An account from LDAP:
jane/jane
Or create new account on fly.
Oh, one second, I got the same - due to the hooks of so-portlet.
Jonas Yuan
Liferay Portal 5.2 Systems Development
Liferay Portal Enterprise Intranets
Hi Marco,
The following code shows the reason:
You can disable it by commenting out the following line in portal.properties of so-portlet.
Hope that it helps
Thanks
Jonas Yuan
Liferay Portal 5.2 Systems Development
Liferay Portal Enterprise Intranets
The following code shows the reason:
public class LoginPostAction extends Action {
public void run(HttpServletRequest request, HttpServletResponse response) {
try {
User user = PortalUtil.getUser(request);
String redirect = "/web/" + user.getScreenName() + "/home";
response.sendRedirect(redirect);
}
catch (Exception e) {
if (_log.isWarnEnabled()) {
_log.warn(e);
}
}
}
private static Log _log =
LogFactoryUtil.getLog(LoginPostAction.class);
}You can disable it by commenting out the following line in portal.properties of so-portlet.
login.events.post=com.liferay.so.hook.events.LoginPostActionHope that it helps
Thanks
Jonas Yuan
Liferay Portal 5.2 Systems Development
Liferay Portal Enterprise Intranets
If is not out of topic, can you explain me better what is "hooks" of so-portlet ?
We use only SO 1.5b for now..
Thank u v much
And answering to your suggest, adding
to portal-ext.properties file doesn't resolve my problem,
after login I reach always "/web/admin/home" and not "/web/communitydiprogetto/home"
Bolzan
We use only SO 1.5b for now..
Thank u v much
And answering to your suggest, adding
login.events.post=com.liferay.so.hook.events.LoginPostActionto portal-ext.properties file doesn't resolve my problem,
after login I reach always "/web/admin/home" and not "/web/communitydiprogetto/home"
Bolzan
Sorry, I didn't understand more or less nothing.. :-)
Now I solve:
In /so-portlet/WEB-INF/classes/portal.properties comment
in /ROOT/WEB-INF/classes/portal-ext.properties add
Now after login I'm redirect where I wanted..
Thanks
Bolzan
Now I solve:
In /so-portlet/WEB-INF/classes/portal.properties comment
#auth.forward.by.last.path=false
#login.events.post=com.liferay.so.hook.events.LoginPostActionin /ROOT/WEB-INF/classes/portal-ext.properties add
default.landing.page.path=/web/communitydiprogetto/home
login.events.post=com.liferay.portal.events.DefaultLandingPageAction
auth.forward.by.last.path=trueNow after login I'm redirect where I wanted..
Thanks
Bolzan
Hi macro,
You can see real example with hooks
at (Chapter 10)
Liferay-Portal-5-2-Systems-Development
General information
http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Portal+Hook+Plugins
Thanks
Jonas Yuan
Liferay Portal 5.2 Systems Development
Liferay Portal Enterprise Intranets
You can see real example with hooks
at (Chapter 10)
Liferay-Portal-5-2-Systems-Development
General information
http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Portal+Hook+Plugins
Thanks
Jonas Yuan
Liferay Portal 5.2 Systems Development
Liferay Portal Enterprise Intranets
Community
Company
Feedback