Wednesday, January 12, 2022

Moodle Front-page behaviour with Moove theme

We had a query about the site home page, also called front page in Moodle, for one of our installations which ran the Moove theme. If a website visitor does not log in, but instead clicks on the sample course, they do not see all the content in the site home page again if they click on Home or on the website Logo. The team was looking for a workaround, and my reply was something like the following:

I believe the "Guest user not seeing home page" behaviour is by design.

1. When a 'not-logged-on' user goes to the home page (index.php) - they are shown the entire "Home" page which includes the "Sponsors" and "Marketing" blocks.

2. When clicking on "Sample course", the user is then logged in as guest. When logged in, clicking on "home" or the site logo on top takes the user to the "Site home" page, which is the same index.php, but with the About us, FAQ etc shown in the "Main Menu" which may be collapsed on the Right-Hand-Side, and the "Marketing" blocks not visible. 

3. There is no "Logout" link directly available for Guest Login, except a "login" link to the login page (at login/index.php) - the only way the guest login will be logged out without logging as another user would be to
(a) close the session
(b) clear the cookies.

4. Moodle does offer an option to customize the front page -
https://www.inmotionhosting.com/support/edu/moodle/customize-front-page/

using "Add a block" and then choosing "HTML block" by going to the home page logged in as Administrator.

But then the look and feel which Moove's  "Sponsors" and "Marketing" blocks would need to be replicated, I suppose. 

I then made a test version of such an HTML block by copy-pasting from "view-source" for a non-logged-in user. Found that the image sizes in the "Marketing" blocks would need to be tweaked manually, but the rest worked reasonably well. 

No comments:

Post a Comment