Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Shankar Baba
where is DefaultLandingPageAction.java
November 12, 2012 10:00 PM
Answer

Shankar Baba

Rank: Regular Member

Posts: 144

Join Date: October 17, 2012

Recent Posts

Hi, can anybody tell me whereis the location of DefaultLandingPageAction.java , i found some thing like /portal-impl/src/com/liferay/portal/events/DefaultLandingPageAction.java , but i need the fully qualified path.
David H Nebinger
RE: where is DefaultLandingPageAction.java
November 13, 2012 5:43 AM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 7153

Join Date: September 1, 2006

Recent Posts

The path is based off of where you've expanded the portal source.
Vilmos Papp
RE: where is DefaultLandingPageAction.java
November 13, 2012 6:44 AM
Answer

Vilmos Papp

LIFERAY STAFF

Rank: Expert

Posts: 463

Join Date: October 21, 2010

Recent Posts

Why is it important to know the physical location? What would you like to do with that file?
Shankar Baba
RE: where is DefaultLandingPageAction.java
November 14, 2012 8:05 PM
Answer

Shankar Baba

Rank: Regular Member

Posts: 144

Join Date: October 17, 2012

Recent Posts

I need to change the default url of the landing page, so that to make the login page as the default one.
David H Nebinger
RE: where is DefaultLandingPageAction.java
November 14, 2012 9:25 PM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 7153

Join Date: September 1, 2006

Recent Posts

Well then you're thoroughly confused...

The default landing page will be invoked after you log in, not before.

You should have the login on the welcome page already...
Ibrahim Mahammad
RE: where is DefaultLandingPageAction.java
November 15, 2012 2:04 AM
Answer

Ibrahim Mahammad

Rank: Junior Member

Posts: 47

Join Date: November 30, 2011

Recent Posts

If you want to change the default page then just Set the property - in portal-ext.properties file as below.

#set the default Start page for a standard user upon login.
default.landing.page.path=/web/guest/login
Vilmos Papp
RE: where is DefaultLandingPageAction.java
November 20, 2012 1:48 PM
Answer

Vilmos Papp

LIFERAY STAFF

Rank: Expert

Posts: 463

Join Date: October 21, 2010

Recent Posts

Hi,

As the others already mentioned, the landing page comes in picture when you logged in successfuly and you can set it in portal-ext.properties, so no code modification is needed.

If you still like to modify the logic to fit your needs, please take a look at the Hook Plugins, you can modify a bunch of things with them.

It worth to get familiar with Hook Plugin development, you can save a lots of work hours especially if you upgrade (you don't have to reapply your modification on another portal source, just verify that your plugin still works fine)

Regards,
Vilmos
Manish Yadav
RE: where is DefaultLandingPageAction.java
April 30, 2013 2:48 AM
Answer

Manish Yadav

Rank: Expert

Posts: 384

Join Date: May 26, 2012

Recent Posts

Hello Vilmos Papp,
I have 3 community in liferay each community members have their own community landingPage. To achieve mentioned functionality i need to modify DefaultLandingPageAction.java.
Could you please let me know which one is better to use Hook or EXT for modifying DefaultLandingPageAction.java.
I'm little bit confuse between EXT and HOOK.Please correct me if i'm wrong
Hook:- I can modify

1. JSP
2. Property file
3. Struct Action Class [eg:- action class of any portlet calander,blogs,Wiki etc]
4. services ????? is it means to modify XXXXLocalServiceImpl classes of any portlet eg :- calander,blogs,Wiki etc


Ext
1. Everything we can modify by EXT

How i can differentiate between java Classes.

a) what are the packages or classes i can modify using Hook
b)what are the packages of java classes i can modify using EXT
Vilmos Papp
RE: where is DefaultLandingPageAction.java
April 30, 2013 5:56 AM
Answer

Vilmos Papp

LIFERAY STAFF

Rank: Expert

Posts: 463

Join Date: October 21, 2010

Recent Posts

Hi,

For the details what can you override in hooks, please check the DTD: http://www.liferay.com/dtd/liferay-hook_6_2_0.dtd this is for the current trunk version, so your version's dtd could be different.

You could modify it with a hook by override portal.properties:
1login.events.post=com.liferay.portal.events.ChannelLoginPostAction,com.liferay.portal.events.DefaultLandingPageAction,com.liferay.portal.events.LoginPostAction


There you can replace it with your implementation.

Regards,
Vilmos