Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-14674

Need a Copy_Course function, or a Templating mechanism

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.8.4, 1.8.5, 1.9
    • None
    • None
    • Any
    • MOODLE_18_STABLE, MOODLE_19_STABLE

    Description

      When creating a new course from import or other means, a set of default blocks and modules are created.

      We'd like to be able to create "Template" courses that get cloned when a new course is created. It's a lot easier for a Department to set up a course Template with just the blocks, modules, themes, etc. the way they want it, and could even have department-specific boiler-plate items (like links to their Academic Integrity Policy, etc.). Then, when the automated process creates new courses for that Department, if there were a Copy_Course function, we could copy from the Template, and then change the idnumber, shortname, full name, and start date to match the new course we need.

      I realize you can backup without users and then do a restore, but this has to be automated. (I'm not manually going to restore 1200 courses every semester). If the information is already in the database, doing INSERT INTO blah blah (SELECT FROM blah blah) is a lot more efficient than zipping and unzipping files.

      Any possibility of someone having or writing a Copy_Course() function?

      Thanks!
      ...Andrew

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              acoile Andrew Coile
              David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo, Adrian Greeve, David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo, David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo, Amaia Anabitarte, Bas Brands, Carlos Escobedo, Laurent David, Raquel Ortega, Sabina Abellan, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: