Navigation pane in quiz attempt

Navigation pane in quiz attempt

Bởi Moodler Project -
Số lượng các câu trả lời: 13

How to remove navigation pane and other buttons from quiz attempt page?

Trung bình điểm đánh giá: -
Để phản hồi tới Moodler Project

Re: Navigation pane in quiz attempt

Bởi Tim Hunt -
Hình của Core developers Hình của Documentation writers Hình của Particularly helpful Moodlers Hình của Peer reviewers Hình của Plugin developers

Not sure why you would want to do that.

Anyway, if you have a custom theme, you could do it by adding some display: none; rules to the CSS.

Để phản hồi tới Tim Hunt

Re: Navigation pane in quiz attempt

Bởi philip torres -

Good day!

Same thing with here, can i hide the navigation panel because I use the option to display one question per page, but the problem is the student can still return to the question since they have the navigation panel. In my class im training my students to take exam without going back to the previous questions, in the old version i manage to hide the navigation by editing the attempt.php. Now in the new version I can do it anymore, Any idea where and how to hide it.

Thanks!

Để phản hồi tới philip torres

Re: Navigation pane in quiz attempt

Bởi Nikita M -

if you are using moodle 2.1 you can also hide Quiz navigation for all theme

in moodle/mod/quiz/attemptlib.php

and change:

$bc = new block_contents();

with:

$bc = new block_contents(array('style'=>'display:none'));

Để phản hồi tới Nikita M

Re: Navigation pane in quiz attempt

Bởi Tim Hunt -
Hình của Core developers Hình của Documentation writers Hình của Particularly helpful Moodlers Hình của Peer reviewers Hình của Plugin developers

That is a really terrible way to do it. Why not do it in your theme?

Để phản hồi tới Tim Hunt

Re: Navigation pane in quiz attempt

Bởi Jean-Michel Védrine -

I quite agree with Tim.

Can you explain why you don't want a student to change his mind about one of his responses ?

Beside that, are you really sure that, even without the navigation panel, your students can't change their previous responses ? toe toét

Để phản hồi tới Jean-Michel Védrine

Re: Navigation pane in quiz attempt

Bởi Nikita M -

I think "quiz navigation" is very useful, but if one person don't want it (even if I do not understand why), there are various easy way to remove it.
(one person can also remove link to another question)

Để phản hồi tới Nikita M

Re: Navigation pane in quiz attempt

Bởi Jean-Michel Védrine -

Hello Nikita,

I quite agree this is one of the great strenght of free software : anyone is free to taylor it to his needs (I don't think this would be possible with B........d), I was just curious (sorry it's in my nature) to know the motives ...

Additionnaly I wanted to point out (just in case Moodler project and Philip were not aware of that) that navigation panel (or links) are not the only means to navigate between questions and that maybe removing such things will create unequality between "ingenious" students and others (should I really explain why ?) if they are not using other  means of "securing" the exam session.

Để phản hồi tới Tim Hunt

Re: Navigation pane in quiz attempt

Bởi Nikita M -

Hi Tim, what do you think about to modify "quiz navigation" display in moodle/mod/quiz/style.css and add:

 .path-mod-quiz #mod_quiz_navblock { ...(insert changes)... }

?

 

Để phản hồi tới Nikita M

Re: Navigation pane in quiz attempt

Bởi Tim Hunt -
Hình của Core developers Hình của Documentation writers Hình của Particularly helpful Moodlers Hình của Peer reviewers Hình của Plugin developers

Well, better, but still wrong.

You should go into theme/{whatever}/style/quiz.css, and add

.path-mod-quiz #mod_quiz_navblock { ...(insert changes)... }

there. If the quiz.css file does not exist, create it, and add to the $THEME->sheets array in the theme's config.php file.

Để phản hồi tới Tim Hunt

Re: Navigation pane in quiz attempt

Bởi Nikita M -

excuse me, but is it wrong to add it in  theme/{whatever}/style/core.css?

Để phản hồi tới Nikita M

Re: Navigation pane in quiz attempt

Bởi Tim Hunt -
Hình của Core developers Hình của Documentation writers Hình của Particularly helpful Moodlers Hình của Peer reviewers Hình của Plugin developers

Not necessarily wrong. Within any theme, it is good to have some sort of logical organisation for the various style rules, just so you can easily find all the rules in your theme that affect the quiz (for example). However, it does not matter exactly how your organise things, and if you don't organise things, the only person who will suffer is yourself, in the future.