Question Numbers in quiz Overview

Question Numbers in quiz Overview

napisao/la 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
Prosjek ocjena: -
In reply to Claire Browne

Re: Question Numbers in quiz Overview

napisao/la 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

napisao/la Joseph Rézeau -
Slika Core developers Slika Particularly helpful Moodlers Slika Plugin developers Slika Testers Slika 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

napisao/la 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

napisao/la Tim Hunt -
Slika Core developers Slika Documentation writers Slika Particularly helpful Moodlers Slika Peer reviewers Slika 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.