Default Course Contents

Default Course Contents

by Adam Barbary -
Number of replies: 1

I've had a trawl through the plugins, and a quick look at some of the code in Moodle 2.1, but am unable to find how I might populate a course with some content on creation. Ideally, I want to add a general forum (like a common room) for students, in addition to the News Forum, and a weblink which I endeavour to dynamically change depending on the course name, that will link to a course description on our CMS. 

If someone can point me in the general direction, that would be most appreciated.

Adam

Average of ratings: -
In reply to Adam Barbary

Re: Default Course Contents

by Henning Bostelmann -
Picture of Core developers Picture of Plugin developers

We do this (or similar) using the Moodle backup/restore mechanism. Instead of creating a new course, we take a backup of a "template course", and restore it into a new course. This can quite easily be scripted in a "local plugin". Dynamically changing the link is a bit more advanced, but should be possible as well.