Importing /uploading wiki

Importing /uploading wiki

by Gerry Lerner -
Number of replies: 4
I'm trying to copy a Wiki created in one course to another course on the same Moodle.
When I "imported" the Wiki all I got was the undeveloped first page.
I tried to export as zip and then upload the files to the new course. This brought the files but doesn't duplicate the same Wiki in the new course.
Can anyone help?
(version 1.8)
Average of ratings: -
In reply to Gerry Lerner

Re: Importing /uploading wiki

by Tatsuya Shirai -

Let's try "Backup" and "Restore" of Wiki contents.(Not Impot)

"Export as zip" feature has many bugs (I had already corrected all of bugs for my moodle site). It's very useful feature, but Exported wiki is HTML format. It's not wiki.


Backup of wiki has a bug.Change like as follwing.

function wiki_backup_one_mod(), mod/wiki/backuplib.php.

fwrite ($bf,full_tag("SUMMARY",4,false,$wiki->summary));
// fwrite ($bf,full_tag("PAGENAME",4,false,$wiki->wtype));
fwrite ($bf,full_tag("PAGENAME",4,false,$wiki->pagename));
fwrite ($bf,full_tag("WTYPE",4,false,$wiki->wtype));
fwrite ($bf,full_tag("EWIKIPRINTTITLE",4,false,$wiki->ewikiprinttitle));
In reply to Tatsuya Shirai

Re: Importing /uploading wiki

by Gerry Lerner -
I'm sorry if I gave the impression that I understood more than I do. Dosn't backup and restore only work WITHIN each course?
The Wiki is in course A and I want to copy it over to course B including all the additions that the students have added.

In reply to Gerry Lerner

Re: Importing /uploading wiki

by Tatsuya Shirai -

You can copy a backup file (zip-format) that is made in course A to course B. After copying a backup file to course B you restore it in course B. Then you can get the same wiki-contents, in course A and course B.

Step1.  In course A, make backup file which contains Wiki contents.

Step2. Copy backup file (.zip) from course A to course B.

Step3. In courseB, restore it.

Backup file is generated on backupdata folder under each course folder.