Programmatically add predifined activities at course creation

Programmatically add predifined activities at course creation

by Danu Nah -
Number of replies: 1
We need all courses to have several default assignments for teachers to report on students' progress. Since the assignments are somewhat complex, we would like to avoid creating them manually for each course. Is there any way to have them automatically created during the course creation process?

Would greatly appreciate any suggestions or code snippets!
Average of ratings: -
In reply to Danu Nah

Re: Programmatically add predifined activities at course creation

by Conn Warwicker -
Picture of Core developers Picture of Plugin developers

Probably the easiest way to do it would be to create them all in a template course, then backup the topic with all the activities in, and then when you create a new course, just import that topic (or topics) into the new blank course.