New Moodle plugin: Import question as new version

New Moodle plugin: Import question as new version

Tim Hunt -
回帖数:0
Core developers的头像 Documentation writers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 Plugin developers的头像
A few weeks ago, I attended MoodleMoot DACH. I don't speak German, but the were extremely welcoming to people with the unfortunately disability of only being able to speak English.

Part of that conference is a two-day DevCamp, where people come together in small teams to build something Moodle-related. Andreas Steiger and I got together and built a new question bank plugin: Import question as new version.

This gets around the the limitation in standard Moodle question import, where what you import always come in as a new questions. There is no way to do an import and update the questions that already exist, until now! As an example, the type of thing you might want to do for certain sorts of updates to a question is the following: Export the question as XML; Open that file in your text-editor; Make a change there (e.g. a search-and-replace of one word for another); Then re-import the edited question to update the one you started with.

This is something people in the STACK community want (as a small part of their plan to make it easier to share questions with each other) but hopefully it will be useful to other people too, which is why I am posting here. It works with Moodle 4.0 or later (because it relies on the question versioning feature). At the moment, you can only import one question at a time, but that is still better than nothing.

This is just a basic first version, but that basic functionality works. There are plans to extend the features in future. Also, it might be good to add this feature to the standard Moodle release at some time, but while it is new, and we want to develop it more, it is easier to do that as a plugin.
平均分:Useful (6)