I am using moodle 3.2 version. I want to set dashboard as default page after user logged in. But in my theme i am not getting that Dashboard option in Administration > Site administration > Appearance > Navigation>Default home page for users. Can you please help me to solve this problem.
Thank you in advance.
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.
Yes I checked by changing all themes. In all themes i got same issue. Can you tell how it will be resolve?
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 ?
Yes, HOMEPAGE_MY choice is there in file.
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.
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.