Foren

Default Landing Page to myCommunity

Mitesh Patel, geändert vor 13 Jahren.

Default Landing Page to myCommunity

New Member Beitrag: 1 Beitrittsdatum: 16.06.10 Neueste Beiträge
How can i set my default landing page to private page of mycommunity? or usergroups private page?emoticon
thumbnail
Corné A, geändert vor 13 Jahren.

RE: Default Landing Page to myCommunity

Liferay Legend Beiträge: 1313 Beitrittsdatum: 03.10.06 Neueste Beiträge
try this in our portal-ext.properies



    #
    # Set this to true if users are forwarded to the last visited path upon
    # successful login. If set to false, users will be forwarded to their
    # default layout page.
    #
    auth.forward.by.last.path=false

##
## Default Landing Page
##

    #
    # Set the default landing page path for logged in users relative to the
    # server path. This is the page users are automatically redirected to after
    # logging in. For example, if you want the default landing page to be
    # http://localhost:8080/web/guest/login, set this to /web/guest/login. To
    # activate this feature, set auth.forward.by.last.path to true. To customize
    # the behavior, see com.liferay.portal.events.DefaultLandingPageAction in
    # the "login.events.post" property above.
    #
    default.landing.page.path=/web/guest/login




furthermore when redirecting to a private page the users must have permission to view this page!
thumbnail
Dhrutika Parekh, geändert vor 13 Jahren.

RE: Default Landing Page to myCommunity

Expert Beiträge: 435 Beitrittsdatum: 09.02.09 Neueste Beiträge
Hi,

If you want like for each user landing page should be their own private page,then for that you can extend DefaultLandingAction.java

Thanks,
Dhrutika
thumbnail
Ivan Cheung, geändert vor 13 Jahren.

RE: Default Landing Page to myCommunity

Regular Member Beiträge: 113 Beitrittsdatum: 20.06.06 Neueste Beiträge
auth.forward.by.last.path=false will take you to my private layouts unless you are logging in with a domain that is recognized as a Virtual Host name within the portal. For example, if you login using domain of abc.com, and abc.com is specified as a Virtual Host name, then you will be redirected to the Virtual Hosted communities home page.