Copy lesson to another course

Copy lesson to another course

Vicente Jiménez Aguilar -
Колькасьць адказаў: 17
There is a way to copy a lesson to another course?

Thanks in advance
Сярэдняе рэйтынгаў: -
У адказ на Vicente Jiménez Aguilar

Re: Copy lesson to another course

koen roggemans -
Выява Core developers Выява Documentation writers Выява Moodle HQ Выява Particularly helpful Moodlers Выява Plugin developers Выява Translators
Yes, make a backup of the course, include course files if you have used uploaded files (eg pictures), include only the lesson, no userfiles.

When performing a restore, you can choose to add the data to a course and then select the course you wish (I think you need to be an admin for that part)
У адказ на Vicente Jiménez Aguilar

Re: Copy lesson to another course

Timothy Takemoto -
Dear Vicente
Koen's method is the right, standard way of doing what you want. But I think that that Audun Hauge's block may also acheive the same thing (although I have never used that functionality), and the Brenstein / Borrow hack may also work for you.
Tim
У адказ на Vicente Jiménez Aguilar

Re: Copy lesson to another course

Mary Chambers -
Am assuming you have already done this but am going to provide my input anyway - for all those other folks out there who will be reading your posting.  I found a way to do this that is easier that the responses you received previously.  When editing is turned on there is an option to import course data.  This will walk you through the necessary steps to bring a lesson easily from  1 course into another.  I had a lesson that took me 3 hard hours to copy and paste from a Word document into the course and I needed to do it 4 times.  Using this option it took less than 5 minutes per course.
У адказ на Mary Chambers

Re: Copy lesson to another course

Alison Schubert -
Is there anyway to just copy or backup/restore just one lesson?  When I tried what you described it works great but copies all the lessons from one course to another.
У адказ на Alison Schubert

Re: Copy lesson to another course

Chris Collman -
Выява Documentation writers
Sure is.  I do it all the time.   In 1.6 it is part of the backup process.  The short hand is to deselect everything with the top link, then go down the list and check what you want.   1.6 will show you every lesson, so you can click on one or every other one or what ever.   Big improvement! 

And Mary has reminded us about the import course function.

I think I posted my 1.5.3 method for copying a lesson from one course to another elsewhere.  Basically backup course1 that has lessonsA-F with as little information as possible (students etc). Restore the course to a new course2.  Go into course2 check your favorite lessonC to make sure it works and maybe make a few edit changes. Now delete everything except lessonC.  Do a backup of  Course2.  I like to  give  my backup a name to remind me that it is a single lesson. Now restore Course2 to your existing Course10 by adding to it.  Presto there is LessonC.   

You could narrowed down an introductory course to 4 lessons.  Each of the 4 lessons is a review/ or reintroduction for a higher level set of courses.  I have found it is easer to create the 4 courses from a backup that contains all the 4 lessons, then delete the lessons that don't belong from each of the new courses.  But that is me in either 1.5.3 or 1.6

Hope this helps.
У адказ на Mary Chambers

Copy lesson to another course

Christian Blessing -
Ms. Chamber's solution is by far the easiest solution to copying whatever one wishes of one course to another course. Thank you.
У адказ на Christian Blessing

Re: Copy lesson to another course

John Isner -
It is the easiest solution, but it still requires that the importing teacher is also the teacher in the course being imported from.  If teacher A wants to "share" a lesson with teacher B, the old backup/restore procedure must still be used. 
У адказ на John Isner

Re: Copy lesson to another course

António Gonçalves -
I agree to this import solution, but I would like to copy parts of the lessons. Sometimes we use the same lesson but with new questions or new contexts, it would be useful to copy it. The other issue, his that I can only copy a lesson from another course, not copying in the same course. We wait to see this update comming. Thanks.
У адказ на António Gonçalves

Re: Copy lesson to another course

Chris Collman -
Выява Documentation writers
Hi,
I have this issue sometimes. Some times I create a Lesson on my localhost without any questions, backup then restore on my real course, then add the questions by inserting them via a gift file(s). Not ideal.

Using the backup and restore process, you can "add to an existing course" just the lesson(s) you want from your course. You will end up with a duplicate lesson in the same topic. I think Moodle lists the duplicate as the lower one (the HTML link id=# for the duplicate should be higher than the initial Lesson, hope you understand what I mean).

I suspect the jumps in Lesson make selection of individual pages a Lesson that will be imported or saved, a big code complication. Would importing specific branch tables without jumps (all jumps going to next page) be something of use?

Another project for somebody else усьмешка

Best Chris
У адказ на Mary Chambers

Re: Copy lesson to another course

Shannon Page -

Mary Chambers - bless you. You just saved my life. Thank you so much for posting that!!!!