cancel
Showing results for 
Search instead for 
Did you mean: 

Guest User Start Location

samudaya
Champ on-the-rise
Champ on-the-rise
Dear Friends,

How to set Guest login to Guest Home as default Start Location?

Thanks
Samudaya
5 REPLIES 5

samudaya
Champ on-the-rise
Champ on-the-rise
Hi Alfresco friends,

Anybody have an idea how to handle this issue?

Thank you very much……….
Samudaya

romschn
Star Collaborator
Star Collaborator
The default initial location set for each user is defined in ClientConfigElement.java as myalfresco.

So, when each user logs into alfresco, he/she would be redirected to myalfresco page. For users other than guest, you can change the initial location through alfresco webclient as below.
Goto User profile  -> General Preferences -> Start Location. (You can select anyone from My Alfresco/Company Home/My Home/Guest Home).

To set the start location as guest home for guest user as default, you can handle this with a bit of the customization as shown below.

1. Customize NavigationBean class.
2. In getToolbarLocation() method, add below entry for your specific requirement.
     if(AuthenticationUtil.getRunAsUser() != null && "guest".equalsIgnoreCase(AuthenticationUtil.getRunAsUser())) {
       this.preferences.setStartLocation(NavigationBean.LOCATION_GUEST);
       return NavigationBean.LOCATION_GUEST;
   }

I have not tried running this but this should work and should show the guest home as the start location for guest user login.

Hope this helps.

Thanks,

samudaya
Champ on-the-rise
Champ on-the-rise
Hi,
Thanks for your reply. However I can't find the file which I have to edit.

Thanks
Samudaya

romschn
Star Collaborator
Star Collaborator
As I mentioned in my previous post, you need to customize NavigationBean class and need to put code as suggested above in that.

samudaya
Champ on-the-rise
Champ on-the-rise
Hi,

Can you please send your previous post URL.

Thanks