to set dashboard as default page after logged in

Re: to set dashboard as default page after logged in

ved Nitesh Kumar -
Antal besvarelser: 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.


I svar til Nitesh Kumar

Re: to set dashboard as default page after logged in

ved 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.

I svar til Prasad Kanalli

Re: to set dashboard as default page after logged in

ved 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 ?

I svar til Nitesh Kumar

Re: to set dashboard as default page after logged in

ved Prasad Kanalli -

Hi Nithesh,

Yes, HOMEPAGE_MY choice is there in file.

I svar til Prasad Kanalli

Re: to set dashboard as default page after logged in

ved 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.

I svar til Nitesh Kumar

Re: to set dashboard as default page after logged in

ved 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.