General developer forum

to set dashboard as default page after logged in

 
Picture of Prasad Kanalli
Re: to set dashboard as default page after logged in
 

Hi Nithesh,

Yes I checked by changing all themes. In all themes i got same issue.  Can you tell how it will be resolve?

Thank you.

 
Average of ratings: -
Picture of Nitesh Kumar
Re: to set dashboard as default page after logged in
 

Hi,

Please open this file Moodle/admin/settings/appearance.php and check for this code(line #162).


 // Navigation settings

    $temp = new admin_settingpage('navigation', new lang_string('navigation'));

    $choices = array(

        HOMEPAGE_SITE => new lang_string('site'),

        HOMEPAGE_MY => new lang_string('mymoodle', 'admin'),

        HOMEPAGE_USER => new lang_string('userpreference', 'admin')

    );


is HOMEPAGE_MY choice is there ?

 
Average of ratings: -
Picture of Prasad Kanalli
Re: to set dashboard as default page after logged in
 

Hi Nithesh,

Yes, HOMEPAGE_MY choice is there in file.

 
Average of ratings: -
Picture of Nitesh Kumar
Re: to set dashboard as default page after logged in
 

Please try again by replacing  lib/navigationlib.php file with fresh moodle lib/navigationlib.php . Also, Please remove or disable the local plugins if any plugin in local folder.


Also, Please do all the tests with Moodle default themes.


It's strange that dashboard option is not showing in dropdown.

 
Average of ratings: -
Picture of Prasad Kanalli
Re: to set dashboard as default page after logged in
 

thanks for replying. I got the issue. 

I changed  define('HOMEPAGE_MY', 2);  to  define('HOMEPAGE_MY', 1);in lib->moodlelib.php.(As I noticed in core file). Now dashboard option is visible. 

But again one problem raised. It is not redirecting to dashboard page although i set in navigation. It is redirecting to index page. If you have any solution please let me know.

Thanks a ton.

 
Average of ratings: -