menu_site_and_course
About
- This is the kind of user-friendy menu that web users are very familiar with using.
- I've tested it on Moodle 1.9 and Moodle 1.8. Perhaps it works on other versions too.
- I've had no problems with this and have had several other sites test it.
- However, as with all "Contributed" block, use it at your own risk. (In other words, try it with a test site first, before installing it into a production site.)
How to Install
Put the folder course_menu inside your moodle/blocks directory, then visit your admin "notifications" page to build the correct tables. Some Features
- It's similar to Moodle's "Section Links" block, so when you click a button, it shows only that one lesson.
- There are "roll-over" navigation buttons with the titles of the lessons. (The "Section Links" block only shows numbers.)
- Course-level and site-level buttons are not the same.
- If you are on the "front page," then a "login" button is at the top of the menu, unless you are logged in, then it is hidden.
- The "Participants" link is included, so the "People" block isn't needed.
- You can easily edit one variable in the file to not have this show, if you prefer.
- Also, links to "Calendar" and "Course" are included. You can edit one variable in the file to choose not to show them.
- Things that students need from the Administration Block are included, so you don't need it to have it on the page.
- Note, I have a slightly edited version of the "Administration" block, that only gets displayed for teachers.
- The colors are limited to grays (greys), so the menu should blend in with any color scheme.
- The the buttons are grouped by different shades of gray.
- You can easily change the color of the buttons by editing the "styles.php" file in the block's folder.
- If you are in a "course," then the top link is "Home" and it will take you back to the "front page."
The Parts of the Image Explained
- This shows the front page before visitors log in.
- This show how the menu looks on the front page after logging in.
- This shows how a logged-in student sees the menu.
- This shows how another language is handled.
- Note that long Japanese titles (2-byte characters) still get truncated OK.
- This shows how the menu looks for aguest in courses that allow guest access.
- This shows the menu when all "weeks" or "topics" are shown.
- This shows the collapsed "show one" lesson mode.
- This show how the menu can fit on the page. I prefer the upper-left corner.
Options for the Brave
See these options around line 52 of block_menu_site_and_course.php /* Options you can set * 1 = show * 0 = don't show */ $showcalendar = 1; $showparticipants = 1; $showprofile = 1; === Changing the color of the buttons. === This block will probably work better with a wide variety of === themes if you leave the buttons gray. Edit the "styles.php" within this folder if you need to change the button's colors. These are the lines you are looking for... * Near the top .block_menu_site_and_course #nav{ background-color: #777; color: #fff; } * Lower in the file .block_menu_site_and_course #nav .h{ background-color: #555; border: none; } .block_menu_site_and_course #nav .s{ background-color: #555; border: none; } .block_menu_site_and_course #nav .c{ background-color: #999; } .block_menu_site_and_course #nav .a{ background-color: #1834F0; } === Author See http://www.manythings.org/tesl/moodle/ 2008-03-19 Charles Kelly