Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Chinnadurai Duraisami
How to delete/hide default welcome page.
January 17, 2013 7:00 AM
Answer

Chinnadurai Duraisami

Rank: New Member

Posts: 20

Join Date: November 28, 2012

Recent Posts

Hi,
I have an requirement where there are 2 usergroups with different public and private pages for users. When user logs in userGroups' site pages(public and private pages) has default welcome page with them. how to hide or delete it.


Regards,
Chinna
Prakash Khanchandani
RE: How to delete/hide default welcome page.
January 17, 2013 8:18 AM
Answer

Prakash Khanchandani

Rank: Expert

Posts: 329

Join Date: February 10, 2011

Recent Posts

I think by "has default welcome page" you mean the "Welcome" page of the User's "My Public Page" and "My Private Page".

It that is the case then you can update the following properties in portal-ext.properties, which would hide the

1layout.user.private.layouts.enabled=false
2layout.user.private.layouts.auto.create=false
3layout.user.public.layouts.enabled=false
4layout.user.public.layouts.auto.create=false


Hope this helps, if not then let me know what exactly you want.
Chinnadurai Duraisami
RE: How to delete/hide default welcome page.
January 17, 2013 8:49 AM
Answer

Chinnadurai Duraisami

Rank: New Member

Posts: 20

Join Date: November 28, 2012

Recent Posts

I knew this option already. It fulfills my requirement partly. When we set such properties, it also removes the options from "Go to". how to navigate to userGgroups' public and private pages when these options are removed from "Go to". Hope you understand the scenario.
Octavio Sánchez
RE: How to delete/hide default welcome page.
January 17, 2013 9:05 AM
Answer

Octavio Sánchez

Rank: Junior Member

Posts: 80

Join Date: March 31, 2009

Recent Posts

You can add a param to the login, if you add the redirect param you can put another page of the portal to welcome your users on login event.
Chinnadurai Duraisami
RE: How to delete/hide default welcome page.
January 17, 2013 9:10 AM
Answer

Chinnadurai Duraisami

Rank: New Member

Posts: 20

Join Date: November 28, 2012

Recent Posts

Thanks for your reply. But i could not understand your suggestion. Could you please explain it in detail or send me some reference links.

Regards,
Chinna
Octavio Sánchez
RE: How to delete/hide default welcome page.
January 18, 2013 2:31 AM
Answer

Octavio Sánchez

Rank: Junior Member

Posts: 80

Join Date: March 31, 2009

Recent Posts

I don't have the source code of liferay here, but googling I'd found this from the portal.properties:

You can set the redirect manually from another application, by appending
the "redirect" parameter in a url that looks like this:
/c/portal/login?redirect=%2Fgroup%2Femployees%2Fcalendar. This url will
redirect the user to the path "/group/employees/calendar" upon successful
login.
Prakash Khanchandani
RE: How to delete/hide default welcome page.
January 18, 2013 2:59 AM
Answer

Prakash Khanchandani

Rank: Expert

Posts: 329

Join Date: February 10, 2011

Recent Posts

Chinnadurai Duraisami:
it also removes the options from "Go to". how to navigate to userGgroups' public and private pages when these options are removed from "Go to".


Yes I understand that, but you can construct the URL to the public and private pages very easily. It is of the format:
1
2http://localhost:8080/web/[screename]/~/[UserGroup_ID]/[UserGroup_public_or_private_page]


for eg for the user "test@liferay.com"
1
2http://localhost:8080/web/test/~/12345/myUserGroupPublicPage


And then you can with a hook customize the dockbar portlets view.jsp, search for <liferay-ui:message key="go-to" /> in the JSP and include two more menus below this :-)

If you don't want to go with the hook then you can create a portlet and include the portlet in the theme somewhere at the top.

If not even theme than include it as a normal portlet on the welcome-page but this will have the links only on the first page and not readily accessible :-)
Chinnadurai Duraisami
RE: How to delete/hide default welcome page.
January 18, 2013 10:10 AM
Answer

Chinnadurai Duraisami

Rank: New Member

Posts: 20

Join Date: November 28, 2012

Recent Posts

Hi Prakash,
Thanks. It is a nice suggestion. I ll try this.

regards,
Chinna