Guest User Start Location
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2011 08:38 AM
Dear Friends,
How to set Guest login to Guest Home as default Start Location?
Thanks
Samudaya
How to set Guest login to Guest Home as default Start Location?
Thanks
Samudaya
Labels:
- Labels:
-
Archive
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-04-2011 05:15 AM
Hi Alfresco friends,
Anybody have an idea how to handle this issue?
Thank you very much……….
Samudaya
Anybody have an idea how to handle this issue?
Thank you very much……….
Samudaya
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2011 02:53 AM
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,
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,
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2011 09:12 AM
Hi,
Thanks for your reply. However I can't find the file which I have to edit.
Thanks
Samudaya
Thanks for your reply. However I can't find the file which I have to edit.
Thanks
Samudaya
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2011 01:16 AM
As I mentioned in my previous post, you need to customize NavigationBean class and need to put code as suggested above in that.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2011 05:30 AM
Hi,
Can you please send your previous post URL.
Thanks
Can you please send your previous post URL.
Thanks
