For over a month I kept postponing posting the course format that I wanted to use on our school site. To understand some of the intricacies of this course format, it may help to know how it evolved:
For teachers new to Moodle the long list of 10 topics of the topics format looks intimidating, esp. because the function of the topic collapse button isn't very intuitive.
Making all new courses deafult to only 3 topics was not a solution because then most users expected an 'Add a new topic' button, instead of having to change the number of sections through the course settings menu.
That's why I decided to give every teacher 10 sections, of which only the filled or named sections are shown. The empty or unnamed sections are only shown in editing mode. (Somehow this seemed to make sense: to add stuff to your newly named section you also have turn on the editing mode)
We also wanted to have one topic show up as the default or active topic. At first we used a separate mark this topic as active-button. I have changed it to something more automatic because ...
I always forget to update the active topic before going with a class to the computerlab.
And I always somehow have to make last minute corrections to that same topic before going to the computerlab.
Notice the strange relationship between these two vices. That's why I have changed the code to reflect this: at the moment the default topic to show up when students enter the course is the last topic visited by a teacher of the course.
As I don't want to force my procrastination habit unto others, I may well revert back to the old behavior with the extra button to click to make a topic the default topic.
Place the directory 'topicmenu' inside your course/format directory.
Add a languagestring to lang/en_utf8/moodle.php: $string['nametopicmenu'] = 'Topicsmenu';
Add styles to your theme for the
I have chosen names to be compatible with The List-o-matic tool. You can use that webbased tool to style your navigation menu.
The list-o-matic doesn't have a separate style for the selected topic. You can use
#navcontainer li.selectedto apply a different style to the topic that was selected by the student.
You can see it being used on this demo page