to set dashboard as default page after logged in

Re: to set dashboard as default page after logged in

על ידי Nitesh Kumar בתאריך
מספר תגובות: 5

Hi Prasad,

Did you try to check the dashboard option by changing the theme? if dashboard option is still not showing there then maybe someone made changes in your moodle core files because this is moodle default feature.


בתגובה ל: Nitesh Kumar

Re: to set dashboard as default page after logged in

על ידי Prasad Kanalli בתאריך

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.

בתגובה ל: Prasad Kanalli

Re: to set dashboard as default page after logged in

על ידי Nitesh Kumar בתאריך

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 ?

בתגובה ל: Nitesh Kumar

Re: to set dashboard as default page after logged in

על ידי Prasad Kanalli בתאריך

Hi Nithesh,

Yes, HOMEPAGE_MY choice is there in file.

בתגובה ל: Prasad Kanalli

Re: to set dashboard as default page after logged in

על ידי 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.

בתגובה ל: Nitesh Kumar

Re: to set dashboard as default page after logged in

על ידי 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.