to set dashboard as default page after logged in

Re: to set dashboard as default page after logged in

by Nitesh Kumar -
Number of replies: 3

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 ?

In reply to Nitesh Kumar

Re: to set dashboard as default page after logged in

by Prasad Kanalli -

Hi Nithesh,

Yes, HOMEPAGE_MY choice is there in file.

In reply to Prasad Kanalli

Re: to set dashboard as default page after logged in

by Nitesh Kumar -

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.

In reply to Nitesh Kumar

Re: to set dashboard as default page after logged in

by Prasad Kanalli -

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.