← blogs.sussex.ac.uk

Things we love about moodle2 pt3 – section name

Edit the summary of any section in moodle2 and you’ll see a new field – Section name.

This is another step in bringing moodle into line with other content management systems, and we like it.

The section name text box isn’t WYSIWYG – so it’s less confusing and will inherit any stylesheet – also its just the right size to encourage users to enter a short, descriptive and meaningful name as a navigation element.

So, why is this important?

At Sussex we encourage our content creators to build a rich user experience for their students. We encourage teachers to add contextual information (using labels) videos and images to each section. Each section,week or topic in moodle becomes more than just a list of links.

Interviews with students and statistical data on site use, seems to support the theory that students find this enjoyable and engaging, and our tutors often take a pride in the experience they can create online for students.

With tutors spending time creating supportive text, images and contextualising the resources/activities in a section it’s important students see this, and don’t just go straight to a resource/activity without seeing the context.

For our VLE in Sussex enabling navigation to resources/activities without any contextual information the tutor intended when designing the course could be considered detrimental to the learning environment. Tutors and users rely on navigating to sections, rather than a list of uncontextualised links.

For our VLE it’s really important for us to create navigation which allows a user to visit site sections, as the course designer intended. By default moodle (1.9 or 2) does not support this kind of navigation with links to sections (moodle2), or meaningful section titles for users (moodle 1.9 section links block).

The new field – section name – could easily enable tutors to create meaningful navigation to sections in their site.

Mock section names for a site/course – moodle1.9

Within our current install (moodle1.9) users are able to navigate to any section in a site (in Sussex each moodle course is called a site).We use the the YUI menu block to generate a site menu. This is generally displayed in every site, as the first block on the left hand side.

The block itself grabs the first 19 characters from the section summary, and uses that text (stripping any HTML) as the section names. Users can configure the amount of characters to use from the summary for longer titles, but unfortunately that is a complex idea for a user to understand, and can lead to section names not being as useful as they might be.

When used well – it’s a powerful and essential usability navigation element, but (due to its complexity for the user) in the majority of cases its not deployed in an optimal way.

Getting the section names for a site/course in moodle2

Moodle2’s addition of a Section name gets rid of the need for the complexity to the user of the YUI menu block. Instead users have a very clear, simple field which will be their section name, and we like this.

We plunged straight into writing our first block in moodle2.0 by trying to create a site navigation menu – using the section names.


$course_sections = $DB->get_records("course_sections", array('course' => $COURSE->id));
foreach ($course_sections as $section) {
$section_name = $section->name;
$visible = $section->visible;
if(!$section_name) {
$section_name = "section ".$section->section;
}
$section_link = $CFG->wwwroot/course/view.php?id=$COURSE->id&$course_format=$section->section;

You’ll notice the new $DB layer format for get_record, and the new array key => value query, but apart from that the code should be pretty familiar to most moodle developers, and if you need a hand the DB layer 2.0 docs are a good starting point.

Here as a screenshot of our UX Nav block in action on a moodle2 site – with some Section names added, and others using the default name.

There are currently no plans to release this as a moodle2 block, but hopefully the code above can help you make your own quite quickly if its something you think user experience on  your moodle2 install will be improved by.

Post a Comment

Your email is never shared. Required fields are marked *

*
*