Course Formats in Moodle

28
Custom Course Formats Alex Walker City of Glasgow College

description

Moodle offers several "course formats". This presentation briefly covers some of the built-in and downloadable formats, a few ideas for what you can include in your own course formats, a brief overview of our custom 'City' course format, and a few pointers on how to build your own course formats.

Transcript of Course Formats in Moodle

Page 1: Course Formats in Moodle

Custom Course Formats

Alex Walker City of Glasgow College

Page 2: Course Formats in Moodle

The Point Of This Talk

• An introduction to course formats.

• An overview of the course formats available to you.

• A brief tutorial on building your own.

Page 3: Course Formats in Moodle
Page 4: Course Formats in Moodle
Page 5: Course Formats in Moodle

Why Build a Course Format

• Control how items are displayed.

• Add extra things to the course page.

• Customise your Moodle courses to reflect the way your institution teaches.

Page 6: Course Formats in Moodle

Why Build a Course Format

Page 7: Course Formats in Moodle

Why Build a Course Format

Page 8: Course Formats in Moodle

Pros & Cons

• Create 'useful links' that make it easier for teachers to run courses.

• Add features without using blocks.

• New ways of organising and displaying course materials.

Page 9: Course Formats in Moodle

Masonry Format

Page 10: Course Formats in Moodle

Grid Format

Page 11: Course Formats in Moodle

One Topic Format

Page 12: Course Formats in Moodle

Other Course Formats

• Some course formats don't have sections at all.

• Moodle's social course format is just a forum.

• Singleactivity makes a course that is just a single activity (2.6+)

Page 13: Course Formats in Moodle

Building a Course Format

• You don't have to start from scratch!

• Take a copy of the 'topics' folder and rename a few things.

• Moodle's developer wiki has documentation on course formats.

• Warning! Upgrading from Moodle 2.3 or lower will break your course formats.

Page 14: Course Formats in Moodle

Building a Course Format

• Rename the folder, language file, and class name in lib.php

• Search and replace in the format's files: from format_topics to format_whatever.

• Your format is ready to customise.

Page 15: Course Formats in Moodle

Building a Course Format

• format.php is responsible for outputting the course's main content area.

• The heavy lifting is devolved to renderer.php

Page 16: Course Formats in Moodle

Building a Course Format

• format.js holds any Javascript you need.

• styles.css contains any CSS you need for your format - don't put it in your theme's CSS.

Page 17: Course Formats in Moodle

Building a Course Format

• If you want to customise the overall page layout, you can change format.php

• If you want to customise how sections are output, you can use renderer.php

• You can always look through other formats to find examples.

Page 18: Course Formats in Moodle

Building a Course Format

Page 19: Course Formats in Moodle

Building a Course Format

Page 20: Course Formats in Moodle

Building a Course Format

Page 21: Course Formats in Moodle

Building a Course Format

Page 22: Course Formats in Moodle

Building a Course Format

Page 23: Course Formats in Moodle

Building a Course Format

Page 24: Course Formats in Moodle

Building a Course Format

Page 25: Course Formats in Moodle

Building a Course Format

Page 26: Course Formats in Moodle

Building a Course Format

• Course formats can have 'fields' that let you customise information.

• For example, this optional Twitter Username field pulls in tweets from that user.

• Can be set up in your format's lib.php file.

Page 27: Course Formats in Moodle

Building a Course Format

Page 28: Course Formats in Moodle

Questions

Alex Walker City of Glasgow College