Re: Changing the home page

Originally Posted by
ivit
When you login to Sugar, it goes to default module which is by default Home. However, you don't need to change/remove Home page, since Dashlets will be necessary. Instead you could put default module value in config.
For example, I am using Documents as my default module, i.e.in config_override.php I have put the following:
$sugar_config['default_module'] = 'Documents';
and whenever user logs in, he/she will go to documents module.
Hi,
I also needed to change the home page as per user basis.
This is one solution but it would be fixed for all users.
another solution is
modules/Users/Authenticate.php
copy this file in custom/modules/Users/Authenticate.php
What it would do is make it upgrade safe.
Looks for
if(!empty($modListHeader[$idx])){
$module = '?module='.$modListHeader[$idx];
$action = '&action=index';
$record = '';
}
Do the necessary changes that let you make the per user basis homepage
and repalce $modListHeader[$idx] with $module_name_for_my_user // the module u want as the home page
place your code before the code mentioned above.
That would redirect the user to the whatever the value is in that variable. do check a lil bit more coz i dun have Sugar installation with me right now. But i hope you got the idea.
Hope it is helpful !!!
If It Is To Be, It Is Up To Me
Bookmarks