Forums de discussion

Users Start Page

thumbnail
Hikesh Hasmukh, modifié il y a 15 années.

Users Start Page

Junior Member Publications: 43 Date d'inscription: 17/07/08 Publications récentes
hello,
i don't know hot to Change Users Start Page automatically.

i added a Company and it's Departments as Organizations and Sub Organizations.

When i associate a user to a Organization, i would like his Start Page to be the Company Public Page.

How can this be done?

Maybe this is a very simple thing, but i'm new at Liferay, any ideias about this?

Thanks
thumbnail
Peter Shin, modifié il y a 15 années.

RE: Users Start Page

Regular Member Publications: 121 Date d'inscription: 24/09/07 Publications récentes
Hi Hikesh,

You can change the default start page by adding this property to your portal-ext.properties file.

default.landing.page.path=/web/guest/login

Just change /web/guest/login to the url of your start page.
thumbnail
Hikesh Hasmukh, modifié il y a 15 années.

RE: Users Start Page

Junior Member Publications: 43 Date d'inscription: 17/07/08 Publications récentes
Hello Peter,

But that changes the default start page for all the users,
I would like to change only for a specific organization Members, so they can view the Organization Public Page instead of tyhe /web/guest/login.


But Anonymous users should continue to see the /web/guest/login.


Thanks


Peter Shin:
Hi Hikesh,

You can change the default start page by adding this property to your portal-ext.properties file.

default.landing.page.path=/web/guest/login

Just change /web/guest/login to the url of your start page.
thumbnail
Ray Augé, modifié il y a 15 années.

Re: [Liferay Forums][6. Third Party Application Integration] RE: Users Star

Liferay Legend Publications: 1197 Date d'inscription: 08/02/05 Publications récentes
The problem is that the user can belong to more than one organization.
So, the logic is different from deployment to deployment.

To this end we provide an example of a PreAction class which you can use
to build out your own logic for directing to start pages.

See [tt]com.liferay.portal.events.DefaultLandingPageAction[/tt]

Then, based on your business rules, build out the logic you need to find
the user specific landing page, and simply set the LastPath object to
that path, and use the final bit of logic in the example.


HTH!
thumbnail
Jigna p Joshi, modifié il y a 15 années.

RE: Re: [Liferay Forums][6. Third Party Application Integration] RE: Users

Junior Member Publications: 41 Date d'inscription: 09/12/08 Publications récentes
HI

IN my case, i have to set condition based default landing page.
i have made one CustomDefaultLandingPageAction and set it in property file
login.events.pre=com.liferay.portal.events.LogoutPreAction,CustomDefaultLandingPageAction

in my code i ve set one jsp page as WebKeys.LAST_PATH


public void run(HttpServletRequest request, HttpServletResponse response) {
String path = "/html/portal/AllreadyLoginView.jsp";

if (Validator.isNotNull(path)) {
LastPath lastPath = new LastPath(
StringPool.BLANK, path, new HashMap<String, String[]>());

HttpSession session = request.getSession();

session.setAttribute(WebKeys.LAST_PATH, lastPath);
}
}

but still, after login it is not displaying this jsp page...Am i missing something..it is landing with user's private page.
Thanx in advance..

Please reply me.
thumbnail
The Meurwinn Concept, modifié il y a 15 années.

RE: Re: [Liferay Forums][6. Third Party Application Integration] RE: Users

Expert Publications: 261 Date d'inscription: 10/04/06 Publications récentes
Hi, i think you need to enable "auth.forward.by.redirect" in portal-ext.properties too.
thumbnail
Rishi Dev Gupta, modifié il y a 15 années.

RE: Re: [Liferay Forums][6. Third Party Application Integration] RE: Users

Expert Publications: 255 Date d'inscription: 23/11/08 Publications récentes
I am able to do it by setting both the below properties in ext enviornment

auth.forward.by.last.path=true
login.events.post=com.liferay.portal.events.LoginPostAction,com.liferay.portal.events.CustomDefaultLandingPageAction

where CustomDefaultLandingPageAction contains the redirect logic to user specific landing page.
thumbnail
Jigna p Joshi, modifié il y a 15 années.

RE: Re: [Liferay Forums][6. Third Party Application Integration] RE: Users

Junior Member Publications: 41 Date d'inscription: 09/12/08 Publications récentes
thanx for d reply
now it's working fine..i need to set auth.forward.by.last.path to true..