Moodle Plugins directory: Course templates | Moodle.org
Course templates
General plugins (Local) ::: local_course_templates
Maintained by Flotter Totte, Sunny Teacher, emeneo Plugins
With this plugin you can easily create courses based on course templates. The plugin also can be used to easily duplicate courses
Latest release:
1783 sites
475 downloads
134 fans
Current versions available: 2
What this plugin does
With this plugin you can easily create courses based on course templates. The plugin also can be used to easily duplicate courses
Setup
- - Install the plugin as usual
- - Manually create the course category "Course templates" (you may later wish to hide this category)
Adding a template course
Add any kind of course into above "Course templates" category.
Creating a template based course
Please see the picture below:
Community tutorials
How to use templates Podcast
Stay up to date
A big thanks to emeneo for providing a place for support for the plugin. I recommend you to create an account on below site in order to receive latest information related to the plugin.
www.emeneoplugins.chocolatelms.com/
Credits:
- Andrew Caya / University of Montreal (major updates version 3.11: Non-admin users (a Category Manager for example) will be able to create a course from a template; Usage of standard Moodle forms for most of the plugin's forms; Client-side and server-side validation on all forms; Support for long-lasting course creation processes; Moodle notifications when the course creation process fails; French version of all translated strings submitted to the Amos database and many others.
- Emma Richardson (Testing Moodle 3.3, 3.4)
- Leon Stringer (leonstr) (Category bug fix)
- Michael Milette (Course names, summaries and course categories are now processed through Moodle filters)
- Renato Soldenhoff (Improved role based access)
Useful links
Contributors
Flotter Totte (Lead maintainer)
Sunny Teacher: Maintainer
emeneo Plugins: Concept, development and support
Please login to view contributors details and/or to contact them
Default exception handler: error/setting_invalid_ui_label
Debug: Error code: setting_invalid_ui_label $a contents:
* line 153 of /backup/util/ui/backup_ui_setting.class.php: base_setting_ui_exception thrown
* line 156 of /backup/moodle2/backup_section_task.class.php: call to base_setting_ui->set_label()
* line 153 of /backup/util/plan/base_task.class.php: call to backup_section_task->define_settings()
* line 60 of /backup/util/plan/base_plan.class.php: call to base_task->set_plan()
* line 161 of /backup/moodle2/backup_plan_builder.class.php: call to base_plan->add_task()
* line 188 of /backup/moodle2/backup_plan_builder.class.php: call to backup_plan_builder::build_section_plan()
* line 101 of /backup/moodle2/backup_plan_builder.class.php: call to backup_plan_builder::build_course_plan()
* line 163 of /backup/util/factories/backup_factory.class.php: call to backup_plan_builder::build_plan()
* line 67 of /backup/util/plan/backup_plan.class.php: call to backup_factory::build_plan()
* line 463 of /backup/controller/backup_controller.class.php: call to backup_plan->build()
* line 149 of /backup/controller/backup_controller.class.php: call to backup_controller->load_plan()
* line 1417 of /course/externallib.php: call to backup_controller->__construct()
* line 68 of /local/course_templates/process.php: call to core_course_external::duplicate_course(), referer: https://example.com/local/course_templates/index.php?step=3&cid=30
Moodle 4.0.2
I had a the same "setting_locked_by_permission" error trying to enable templates for course creators. Assigning "moodle/restore:configure" and "moodle/backup:configure" capabilities did the trick for me.
I allowed for following capabilities
Allow: local/course_templates:view
Allow: moodle/backup:backupcourse
Allow: moodle/backup:userinfo
Allow: moodle/restore:restorecourse
Allow: moodle/restore:userinfo
Allow: moodle/course:create
Allow: moodle/site:approvecourse
Allow: moodle/restore:configure
On the third step "Define Settings" of Create a course from a template, I am getting the error, "Course or activity not accessible." after the user click continue after entering Course name & Course short name.
Moodle 4.0.1
Can you please hint, what I might be missing?
Zak's tip sounds good. If that doesn't help, try assigning "moodle/course:viewhiddencourses" or even "moodle/course:view" permissions. (course:view allows users to see content of courses they are not enrolled in. Only use that if appropriate for the role you are assigning to.)
First I would like to thank you for your great plugin,
I used it in my university, and I have a manager for each college, and I want each manager to be able to restore only one template. to do this I didn't give any of them permission in the course templates category, but I enrolled each one of them as a manager in his template. this works great for me where when any admin tries to use a template not belong to his college he will get a message you don't have permission to do that.
THE ONLY ISSUE REMAINING IS
The admin is enrolled in all newly created courses, is there a way to have a setting to prevent user enrollment to be included in newly created courses from the template?
Have you planned to update the software for compatibility with Moodle version 4.1.1?
@Keith VW
This error occurs when there is no category id 1 on the site, which is the one that the plugin sets by default. It is a bug.
You can try to access with the address by sending an id of an existing category, no matter which one, so that it does not use the default one, example: www.yoursite.com/local/course_templates/index.php?cateid=6
I have another query: Is there a method to enable users to create courses from templates without granting them the ability to create or restore courses in any other way? I aim to restrict course creators to exclusively using templates for course creation, disallowing other methods.
webservice/backupprecheckerrors