Making Collapse All as default in Quiz Report Page

Making Collapse All as default in Quiz Report Page

by Shahab Mohd -
Number of replies: 2

The following report option forms in the mod/quiz/report.php are expanded by default. I would like to make Collapse All as default instead. 

What to include in the report

Display options

The following CSS commands make the link disappear from page. I think changing some parameters in css it can be made collapse all as default. 

page-mod-quiz-report .collapsible-actions .collapseexpand {display:none;}

Can it be done through CSS? Appreciate any help in this regard

Average of ratings: -
In reply to Shahab Mohd

Re: Making Collapse All as default in Quiz Report Page

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

This needs to be changed in the PHP code.

In mod/quiz/report/attemptsreport_form.php, at the end of the definition method, add

$mform->setExpanded('preferencespage', false);
$mform->setExpanded('preferencesuser', false);
Average of ratings: Useful (1)