Question Numbers in quiz Overview

Question Numbers in quiz Overview

by Claire Browne -
Number of replies: 4
Helllo,

I am trying to change the numbers starting with a '#'.

Could someone point me in the right direction?

I am looking at the Quiz attempts overview page.

See image below.

thanks.
Attachment questionnhumbers.GIF
Average of ratings: -
In reply to Claire Browne

Re: Question Numbers in quiz Overview

by Claire Browne -
In simple terms, I am trying to echo my question name in column #1, #2 and #3
In reply to Claire Browne

Re: Question Numbers in quiz Overview

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators
Claire,
If your question names are somewhat long (many words) and you have many questions in your report, then the table may become quite wide and overflow your screen.
Maybe better display each question's name in a tooltip, visible when hovering over the question's number? Do you need to see question name on screen only or to print it?
Joseph
In reply to Joseph Rézeau

Re: Question Numbers in quiz Overview

by Claire Browne -
Hi Joseph how do I custom the tool tips?

I like that idea.
In reply to Claire Browne

Re: Question Numbers in quiz Overview

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
I don't think you can do a custom tooltip, since the tooltip is already taken up by the sorting code.

You could output the question name in a <span class="qname"> that you style to use a small font so that it fits better.

Anyway, the code you need to look at is in mod/quiz/report/overview/report.php, around like 215 where it is building the $headers[] array.