importing presets in 1.8

importing presets in 1.8

Joe Lounge發表於
Number of replies: 10
I continue to get a "can not unzip file" error when I try to import a preset in the database module. I am using version 1.8. Anyone have any suggestions?
評比平均分數: -
In reply to Joe Lounge

Re: importing presets in 1.8

Atia Cortes發表於
Hi,
I'm creating a database template on my moodle test server. Does anyone know if I can export it to a preset.zip and then import it to the production server? Does this have any sense?
Any suggestion will be appreciate
Atia
In reply to Atia Cortes

Re: importing presets in 1.8

Helen Foster發表於
Core developers的相片 Documentation writers的相片 Moodle HQ的相片 Particularly helpful Moodlers的相片 Plugin developers的相片 Testers的相片 Translators的相片
Hi Atia,

Yes, you can create a preset then export and import it to your production server. However, please ensure you are using the latest Moodle 1.8 version, as it includes a fix for a preset bug (MDL-12439).
In reply to Helen Foster

Re: importing presets in 1.8

Atia Cortes發表於
Hi Helen,
I tried to create a new database on the same course (still testing...) using my template which I saved as a preset on preset's filed. When I add a record, there are the fileds I specified on the original database, with same names etc, but with the default visualization template again.
Is that normal? Is there a way to share the template between courses?
Thanks for your help
Atia
In reply to Atia Cortes

Re: importing presets in 1.8

Leah Hemeon發表於
Testers的相片
Hello Atia,
I ran into this same problem when I was creating several of the same database. It may not be the correct solution to the problem but what I did was copy the source code of the template into a simple Notepad document for each of the templates. Then I pasted the same code back into the new course.

Hope this helps at least temporarily. It would be nice if the templates came with.
In reply to Atia Cortes

Re: importing presets in 1.8

Helen Foster發表於
Core developers的相片 Documentation writers的相片 Moodle HQ的相片 Particularly helpful Moodlers的相片 Plugin developers的相片 Testers的相片 Translators的相片
Hi Atia,

Please update your Moodle site to the latest 1.8 version in order to be able to share templates between courses and between sites.
In reply to Helen Foster

Re: importing presets in 1.8

Atia Cortes發表於
Hi Helen and Leah,
I just downloaded moodle's latest 1.8 yesterday, so I don't think this is the problem because I am already able to share the template but it only inherits the fields I defined.
By the moment I'm also doing this copy&paste solution, but we'd like teachers to be able to do it by theyrselfs without having to set up again the look&feel
If you guys have another idea I will appreciate it.
Since then, thanks for your help
Salut, Atia
In reply to Joe Lounge

Re: importing presets in 1.8

dan roggenkamp發表於
Hi Joe

I see this is an old thread, but I'm having the same problem on 1.9. I export a preset as a zip file, upload it to another Moodle, and it won't unzip. The internal Moodle unzip function is working. Did you ever find a solution?

Thanks
In reply to dan roggenkamp

Re: importing presets in 1.8

Robert Allerstorfer發表於
Dan,

it should work fine with the latest 1.9.1+. with the original version 1.9. It might not work. A lot of presets related bugs have been fixed since then.

rob.
In reply to Robert Allerstorfer

Re: importing presets in 1.8

Julien Cros發表於
Hi,

We've been migrating from 1.6.5+ to 1.8.5+ lately, 1.6's databases have been migrated too..They are still working but won't get imported in an other course, we must re-create them under 1.8 before importing otherwise we get this message: "New preset has no defined fields" (the export to a zip file or saving to a preset works anyway).
Is there a patch or a "light" change in the code we can apply in order to be able to import zips or save as presets 1.6's migrated databases under 1.8 ?

Thanks in advance, regards
Julien
In reply to Julien Cros

Re: importing presets in 1.8

Susan Mangan發表於
Hello.. I cannot import presets. I am using v 1.8.8. I browse for the .zip file, click 'Import' and nothing happens. Blank Screen. This occurs on both IE 6 and latest version of Firefox. Does anyone know why this may be happening? I searched the bug tracker but couldn't find anything open for v.1.8+ ... thanks