How to disable Site Home

This forum post has been removed

Number of replies: 9
The content of this forum post has been removed and can no longer be accessed.
In reply to Deleted user

Re: How to disable Site Home

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

They *are* directed to the Dashboard by default. 

Nobody sees the Home page unless they specifically click the navigation link. You could hide that with a bit of custom CSS. Not tried it but something like...

a[data-key="home"] {
    display: none;
}
Average of ratings: Useful (2)
In reply to Howard Miller

This forum post has been removed

The content of this forum post has been removed and can no longer be accessed.
In reply to Howard Miller

This forum post has been removed

The content of this forum post has been removed and can no longer be accessed.
In reply to Deleted user

Re: How to disable Site Home

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

The Dashboard doesn't show anything useful to visitors. The Dashboard shows things like 'My courses'. Well, it can't do any of that if you haven't logged in. 

If you want everybody to go straight to the Dashboard, enable forced login. 

In reply to Howard Miller

This forum post has been removed

The content of this forum post has been removed and can no longer be accessed.
In reply to Deleted user

Re: How to disable Site Home

by Mayank Tyagi -

Hi Wahyu,

If you want you can comment the site home code from navigationlib.php (moodle/lib/navigationlib.php). 

Regards,

Mayank


Attachment new.PNG
In reply to Mayank Tyagi

Re: How to disable Site Home

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

You can, but you shouldn't.

Leave core code alone. Otherwise, it just becomes an excuse not to upgrade.

Average of ratings: Useful (3)
In reply to Howard Miller

Re: How to disable Site Home

by Melanie Scott -
Picture of Particularly helpful Moodlers

I second Harold's remark.  I was stuck on 1.9 for several years for this reason.  Even after we stopped modifying core code, the IT people would use that as an excuse to not update--and I would say, but we don't have that problem any more...anyway.  Hacking core is never a good solution.  A solution, maybe, but a bad one.