Help is at hand for those time consuming periods when Moodle administrators need to create a lot of new courses; when preparing for a new academic year, or to provide homes to a large number of training modules that have been purchased from an external supplier. These examples can be well-served by using the Upload courses feature that is available in Moodle 2.6!

This allows administrators to create the required number of courses easily and quickly. An additional advantage to administrator’s who are familiar with using Upload users to create user accounts in bulk, is that the process is very similar.

To get started, simply create a spreadsheet containing the course information for your new courses. It just needs to contain at least the following course information; the course shortnames, the fullnames and the ID of the category or categories you want to put the new courses into like this example;

shortname fullname category
HS1 Fundamentals of Health and Safety 7
HS2 Working around H&S 7


The category ID can be found by selecting the category you want to add the courses to – it is the number at the end of the URL in the address bar (see the image below).
Create Moodle courses in bulk

You can also specify other course attributes in the upload courses sheet, for instance start dates, course formats, a course theme (if enabled), the enrolment method and default role just as you can for user accounts in Upload users.

Once you have finished adding information to the spreadsheet, you need to save it as a .csv file.

Note, to maintain the integrity of any non-Latin characters (e.g. à, é, ö, ø, etc.), you should change the encoding to UTF-8 in a plain text editor like Notepad 2 or Notepad++ before you upload your file. Both these programs are free to download and install. Please note – this should be done when creating user accounts using Upload users too for the same reason.


The next step is to upload your upload sheet; go to Site administration > Courses > Upload courses and add your courses .csv file.Create Moodle courses in bulk

The available settings offer hints to other useful things that can be done using the Course upload feature. By choosing Update existing courses from the Upload mode setting, administrators can now update numerous courses in a single step, for example, rename courses or reset them at the end of an academic year. The enrolment method can also be changed so if it is decided that courses be available to all users, the enrolment method can be easily changed from manual to self-enrolment using this feature.

Once you have gone to your preview, you can choose to base each of the courses you are going to create on an existing course or a backup and change the default course values (see below).
Create Moodle courses in bulk

Once this has been confirmed, the courses will be created/updated.


Just a couple of points to bear in mind are;

If you base your new courses on a backup or an existing course and change the course defaults as part of the Upload courses process, settings that you cannot change in this process, such as the number of sections contained in a course, will revert to the site’s default which, in a standard install, is 10. Should you not change the default number of sections for the site (Site administration > Courses > Course default settings) before you create the courses, you will have to delete any superfluous sections manually.

All your new courses will contain the default blocks as well as those from the reference course. If you do not want a default block in the new courses, e.g. search forums, the only way you can do this is by disabling the block - this of course affect all courses. The only alternative I have found is to go into each course and delete them manually.

All in all, this is a great way to aid administrators in getting a large number of courses set up, all you have to do is remember to set up the site defaults accordingly to save you having to make changes. I dare say that now as this feature is present in standard Moodle and it matures, small issues such as the ones I have highlighted will be addressed making this an effective way of creating template courses in a Moodle install.


Want to fast-track your Moodle knowledge? Discover our Moodle training today:


‹‹ Previous Next ››

Related posts

L&D Is Changing – Here's What to Expect in 2020

For those of us in learning and development, we've got an exciting year ahead. The workforce is changing, and so are their expectations. And to meet those new expectations, the technology we use on a daily basis is evolving.

The eLearning sector has already seen rapid growth and radical improvements – and it looks like it's showing no signs of slowing down in 2020.

How To Get Your LMS Ready For 2020

If there's one thing we love about learning, it's that there's always something new on the horizon.

New research brings new insights to your courses. New trends lead to new training methods, and new technology helps new starters on their way to a new career.

But all of these exciting changes come with a price: Your Learning Management System can't stay static forever.