Deleting questions - proposal

Deleting questions - proposal

by Howard Miller -
Number of replies: 22
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
This stems from Bug #2239. However, at the moment one can only delete questions one by one from the list of questions in a category. This is a pain in itself but I also think it's slightly inconsistent. It would feel more natural to me to have delete in the drop down option box at the bottom that effects 'selected' quiz questions. That would mean one could delete a whole bunch at once. An all/none select function could easily be added.

I guess the original 'x' delete *could* be there as well.

I didn't want to just do this without getting some feedback is it is a fairly serious logic change.  Thoughts??
Average of ratings: -
In reply to Howard Miller

Re: Deleting questions - proposal

by Gustav W Delius -
This sounds like a natural improvement of the user interface. As you say: it adds convenience and at the same time makes the interface more consistent.
In reply to Howard Miller

Re: Deleting questions - proposal

by Enrique Castro -
Picture of Core developers Picture of Particularly helpful Moodlers
I do see that change as a true improvement, go for it!
Yesterday I had to do just this, deleting several questions, and missed the functionality of "select and act on" as in the file manager.

Another annoyance of this interface, already discussed in other threads (but I cannot resist), is the "random question" (and worse, "add multiple questions"). I do feel that "empty" placeholders for random questions should not appear on the Category list.  Rather, "add multiple random questions" should be placed  at bottom, with the "send to" button. And placeholders should appear only in the actual test list, not in the category list.

- Enrique -
In reply to Enrique Castro

Re: Deleting questions - proposal

by Gustav W Delius -

Yes, Enrique, I had been surprised by the same thing. Those multiple random questions should not appear in the category list.

Howard, regarding your "Delete selected": don't do it as a drop-down list but with icons, as in the new phpmyadmin. Also while you are at it, can you also put in a preview icon so that  I can preview several questions at once?

In reply to Gustav W Delius

Re: Deleting questions - proposal

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Good grief, what have I started smile

Ok - I'm on to it!
In reply to Howard Miller

Re: Deleting questions - proposal

by Dennis Daniels -
Please! I'm facing almost a thousand questions now and as my dbase grows so does the need for mass deletion for the quiz and the question side...
The quiz side on the left and the question (dbase/category) size on the right... both would benefit, IMHO, with a mass deletion button option. smile

What a welcome feature!

Dennis
In reply to Howard Miller

Re: Deleting questions - proposal

by Brian King -
great!  that'll be a wonderful improvement!

a "select all" / "unselect all" javascript would be nice, too, if you can slip it in while you're at it ;).

In reply to Brian King

This forum post has been removed

The content of this forum post has been removed and can no longer be accessed.
In reply to Deleted user

Re: Deleting questions - proposal

by trevor delamor -
Can i offer my opinion as well.

In Respondus, there is an option when creating questions to use a question as the basis for your questions. I.E: i have a picture of a micrometer tool, I'd like to be able to have the image be the basis of following next 25 questions, but moodle doesn't allow thus, and would take some extra time to create multiple questions. Hard to explain, but do you see what im saying? smile
In reply to trevor delamor

Re: Deleting questions - proposal

by Gustav W Delius -

Yes, we will definitely need that possibility to base a question on a previous question. What I would like to do is introduce a copy icon in addition to the edit icon next to each existing question. Clicking on that brings up the usual edit window with the details of the question filled in. The teacher can then modify these details and when the teacher saves this it is saved as a new question.

In reply to trevor delamor

Re: Deleting questions - proposal

by Timothy Takemoto -

Dear Trevor Delamor,


While the copy question button sounds nice (thanks Gustav) if you use the GIFT inport format then it is pretty easy to do what you want to do. I do it quite often. Just copy the first GIFT question and edit each paste.

What does this picture represent<br /><img src="url" /> {
=A woman having her blood pressure taken. #Yes, correct.
~A dog having a bath# How dare you, that is my wife!
~A woman having an injection #No quite.}

What does this picture represent<br /><img src="url" />{
=A nurse taking a woman's blood pressure. #Yes, correct.
~A dog catching a ball# How dare you, that is my wife!
~A woman having her height measured#   No quite.}

What does this picture represent<br /><img src="url" /> {
=A woman having her blood pressure taken. #Yes, correct.
~A dog having a bath# How dare you, that is my wife!
~A woman having an injection #No quite.}


Once you get used to using GIFT then it is quite a bit quicker than using any GUI. The joy of GIFT is that it gives you the complete functionality of the quiz module with one-key-press field separators. This is a good reason why GIFT as a format is not going to go away. For those that have to type in a lot of questions it is hard to beat for speed.

Tim
I don't need to write "tkmt" now since there will be super-search soon. That means I am going to become "Ti" again.

In reply to trevor delamor

Re: Deleting questions - proposal

by Gustav W Delius -
I have put this into CVS HEAD for Moodle 1.5dev. Please let me have comments.
In reply to Gustav W Delius

Re: Deleting questions - proposal

by trevor delamor -
very nice, verrry nice :D
In reply to trevor delamor

Re: Deleting questions - proposal

by trevor delamor -
Thanks Tim, that helps out a lot. GIFT seems pretty easy to do once you get the hang of it.

I have one more suggestion/question. In the "editing a question" section of moodle, at the very bottom it says "Save changes". Is it possible to have another button to say "Save changes as" and have it prompt you instead of overwriting the current question? I dont know if im the only one who creates questions like the image below, where the last few characters of the question changes, and the image. It would save a lot of time when creating questions in moodle. That way users would'nt need to re-invent questions, just use that previous question as the basis of there next one.

imp2.jpg
In reply to Gustav W Delius

copy or clone?

by Gustav W Delius -
Currently the icon in Moodle 1.5 that allows you to create a new question based on an existing one is labelled "copy". It just occurred to me that perhaps "clone" would describe this better. Also perhaps someone wants to come up with a better icon design?
In reply to Gustav W Delius

Re: copy or clone?

by trevor delamor -
I would like to create one, one problem, I can't find the "clone" or "copy" option anywhere? im using 1.5 Head for development and 1.4 for school, could I be blind? heh

I've noticed there is a "select all" but not a "deselect all". I've edited the code and added my own "deselect all" works well, if you're interested?

One more thing Gustav, how can i impliment these new features that are in 1.5 to 1.4? I really like the random feature right at the bottom of edit questions and I love how the blank "random questions" does not get put into the question lists, it is kind of annoying going in and deleting about 100 blank questions. Maybe some sort of patch you have? I dont want to re-customize 1.5 as i have 1.4 looking nice and a massive question/test bank already.

Best Regards,

Trevor
In reply to Gustav W Delius

Re: copy or clone?

by Julian Sedding -
Gustav,

might it not be more intuitive if there was just a "edit" icon, which leads to the edit page and to have two buttons there, one to "save" (overwrite) the current question and one to "save as new question"? Just a suggestion.

Julian
In reply to Julian Sedding

Re: copy or clone?

by Gustav W Delius -
There appeared to be a widespread feeling that it would be better to have a "Save as new question" button on the question edit page instead of the clone icon on the quiz edit page. This is now how it is done in the latest Moodle 1.5 code.
In reply to Howard Miller

Re: Deleting questions - proposal

by Gustav W Delius -
I have now added this 'Delete selected' feature to Moodle 1.5 because I was working on the code anyway for the 'Move to' category feature anyway.
In reply to Gustav W Delius

Re: Deleting questions - proposal

by panda velka -

Dear Gustav,

it's very good that you added the feature to move questions between categories (a category selection menu and "Move to" button). Would it be possible to add a similar feature to the left column where the questions added to the quiz are displayed? It would be good to select more questions that are to be deleted? If the teacher wants to delete more questions from the list, he/she must click on the "move to" button next to each question and cannnot select more questions at once.

We would appreciate a buttons like "Select all", "Deselect All" and "Remove selected from quiz".

Dita Pandova

In reply to panda velka

Re: Deleting questions - proposal

by Gustav W Delius -
Hi Dita, I personally will not have the time to implement such a feature. However I see its usefulness. Is there already a feature request to this effect in the bug tracker? If not, you may want to add it.

The whole quiz editing interface would really benefit from a bit of web 2.0 technology. Any volunteers who want to play around with a bit of AJAX to improve the quiz editing interface?