Hi, everyone.
recently I migrated from Moolde 1.9.6 to Moodle 3.0 (I probably should say it was a jump).
With this lastest version I am no longer able to create Moodle XML comliant questions with images as answers and audiofiles as question text because I can no loger use an absolute URL to point to the location where images and audiofiles are stored. In Moodle 3.0 file management is database maintained, almost all image files are converted into a base64 format and their storage is unintelligible for the human mind.
There is no option for me to create manually the question inside moodle, because I already have a database of questions amounting to 4 thousand questions and counting, besides all questions without images were imported into moodle using my Moodle XML creator engine with only minor or no change at all. The only problem I bumped into is when importing questions with images and audiofiles.
My question database is setup as follows:
Each record (each question) has 4 related files: one audiofile and 3 imagefiles whose folder-names and file-names are created on-the-fly on the basis of the information pertaining to the question and match and file with the audio for the question (Qtext) and those with the graphics for the answer (Option1, Option2 and Option3) and the physical folder/s where the files are stored.
Since in Moodle 1.9.7 all course files where stored in a folder with the name of the course-ID inside the moodledata directory, It was easy to upload the course files and manage them. Therefore after uploading the necessary files for the questions, in order to make sure I would feed Moodle an XML that it would like, I would set up a question inside moodle (i.e.manually), export it and then reverse-engineer it to fit my needs, upload the necessary files into the proper folders and then importing the modified XML back into Moodle with almost no sweat at all. I could successfully set up these kind of questions because I could point to the audio and image files using relative/absolute URLs.
With the change in the file system management of Moodle 3.0 whenever I select a resource to be used anywhere in a course, Moodle creates a database record to manage the selected resource,rather than storing the relative/absolute URL to the resource.
Is there a workaround to this file system management of Moodle 3.0 so that I could use relative/absolute URLs pointing to to the audio and image files instead of the database managed media and the base64 encoding?
I've tried several different on-line search in the last couple of days, but, unfortunately, with no luck!
I really hope that someone could help, because it's about time I started testing my students...
Thank you very much for your kind support.
Happy new year,
Massimiliano