Foros de discusión
How to delete/hide default welcome page.
Chinnadurai Duraisami, modificado hace 11 años.
How to delete/hide default welcome page.
New Member Mensajes: 20 Fecha de incorporación: 28/11/12 Mensajes recientes
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
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, modificado hace 11 años.
RE: How to delete/hide default welcome page.
Expert Mensajes: 329 Fecha de incorporación: 10/02/11 Mensajes recientes
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
Hope this helps, if not then let me know what exactly you want.
It that is the case then you can update the following properties in portal-ext.properties, which would hide the
layout.user.private.layouts.enabled=false
layout.user.private.layouts.auto.create=false
layout.user.public.layouts.enabled=false
layout.user.public.layouts.auto.create=false
Hope this helps, if not then let me know what exactly you want.
Chinnadurai Duraisami, modificado hace 11 años.
RE: How to delete/hide default welcome page.
New Member Mensajes: 20 Fecha de incorporación: 28/11/12 Mensajes recientes
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, modificado hace 11 años.
RE: How to delete/hide default welcome page.
Junior Member Mensajes: 80 Fecha de incorporación: 31/03/09 Mensajes recientes
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, modificado hace 11 años.
RE: How to delete/hide default welcome page.
New Member Mensajes: 20 Fecha de incorporación: 28/11/12 Mensajes recientes
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
Regards,
Chinna
Octavio Sánchez, modificado hace 11 años.
RE: How to delete/hide default welcome page.
Junior Member Mensajes: 80 Fecha de incorporación: 31/03/09 Mensajes recientes
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.
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, modificado hace 11 años.
RE: How to delete/hide default welcome page.
Expert Mensajes: 329 Fecha de incorporación: 10/02/11 Mensajes recientesChinnadurai 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:
http://localhost:8080/web/[screename]/~/[UserGroup_ID]/[UserGroup_public_or_private_page]
for eg for the user "test@liferay.com"
http://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, modificado hace 11 años.
RE: How to delete/hide default welcome page.
New Member Mensajes: 20 Fecha de incorporación: 28/11/12 Mensajes recientes
Hi Prakash,
Thanks. It is a nice suggestion. I ll try this.
regards,
Chinna
Thanks. It is a nice suggestion. I ll try this.
regards,
Chinna