LDAP Enrolment template course with content: is it possible?

LDAP Enrolment template course with content: is it possible?

by Marcus Green -
Number of replies: 3
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

The LDAP enrolment plugin includes a field called Template which is described in the interface as 

"Optional: auto-created courses can copy their settings from a template course"

Is there any way to arrange for the content of the template course to be bought over as well as its settings. The idea is that newly created courses would be populated with template items so that things like tutor contact fields etc already existed on creation. This appears to be possible with the creation of CSV course creation where the code appears to perform a backup and restore of the template course, whereas LDAP only brings over settings.  Any ideas?

Average of ratings: -
In reply to Marcus Green

Re: LDAP Enrolment template course with content: is it possible?

by Vicke Denniston -
Picture of Testers

Hi,

yes content should be applied to the courses created, we use a template to apply some content to f2f classes and other content to online classes. I am not sure if you can use two templates in the LDAP upload, we use DataHub from Remote Learner to create our classes

Average of ratings: Useful (1)
In reply to Vicke Denniston

Re: LDAP Enrolment template course with content: is it possible?

by Marcus Green -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

After extensive investigation it appears that course creation triggered by LDAP enrolment does not bring in any Content to the new courses from the template. It brings in information stored in the mdl_course table but no text,blocks,labels etc. If the course creation is triggered by the first person who logs in that is logged in on the course I can see a performance justification for this. If a user was the first person to login who was enrolled on 20 or 30 courses then there would be a significant delay during login while the content of the courses was assembled from the template course.

If however course creation was triggered through the enrol/ldap/cli/sync.php then adding content from the template course would make sense.

I have not come accross DataHub from Remote Learner.