Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Quiz Summary Page Hiding: Difference between revisions

From MoodleDocs
Line 31: Line 31:
We should have an additional option to omit the summary page.
We should have an additional option to omit the summary page.


My variants to place this option are:
There are some variants to place this option:


'''Quiz administration -> Edit settings:'''
'''Quiz administration -> Edit settings:'''

Revision as of 06:21, 24 September 2015

Summary page in Moodle quize


At the end of every quize user sees a summary page asking to confirm quize finishing.

SummaryPage1.png

Pushing the "Submit all and finish" user gets another submit request.

2.PNG

Only after this user can finish and go to review page.


Finishing quize without summary page


As a way not see the summary page is to ask the confirmation on the last quize page.

3.PNG

Pushing next user finishes his attempt and goes to review page.

4.jpg

Turning off the summary page


We should have an additional option to omit the summary page.

There are some variants to place this option:

Quiz administration -> Edit settings:

Add yes/no trigger to Layout menu of quize.

5.PNG

Quiz administration -> Edit quize:

Add a new special summary page with a checkbox.

6.jpg

Add a new special summary page with a add-option on the page. And spedial close-button for disabling.

10.png

Storing the flag


The main problem of this task we need save anywhere the flag about the summary page showing. I`ve got some ideas how to save this information:

Change table structure

The most obvious way to add a new column to the quiz information table mdl_quize.This table was created for storing options and it`s common to add such things. But this table has already many columns and we need to take into account our new column in backup and restore procedures.

7.PNG

Add row

If we don`t want to add a new column we may add a new row to a table quize_slots. This table contains the information about quize pages configuration. May be it`s a reason to add a new additional slot for summary page. Some columns fill by negative numbers to mark it as not a question. This way allow not to change structure but confuses different objects in one table. It can cause more additional conditions in php code to filter what is question and what is not and which page to show in quize and which not.

8.PNG

Edit quiz name'

This way is a temporary solution and it doesn`t need any addings to database. If we need to add flag we can add to a quize name or intro any invisible symbol and then check it as a flag.

9.png

The problem that user can delete it by name/intro edition.

There are all my ideas for this solution. If somebody knows how to do it better or can something advise please help me.