Moodle 2.0 : recommended Navigation & Settings blocks display

Moodle 2.0 : recommended Navigation & Settings blocks display

Joseph Rézeau發表於
Number of replies: 1
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片 Testers的相片 Translators的相片

1- In Moodle 2.0 DEV I notice that when navigating in the Course activities there are 2 possible ways of displaying the navigation:

a) the Navigation (and Settings) blocks are displayed in the left column

b) the breadcrumb at the top includes a link to the actual Course (followed by the name of the current activity).

2- In editing Teacher role, these 2 display systems sometimes overlap each other; and when editing activities, the Navigation (& Settings) blocks are sometimes displayed, sometimes not. The display behavior does not look coherent to me, as explained in the following examples.

Quiz activity

Info, Results and Preview: Blocks displayed, Course front page not linked

Edit: Blocks not displayed, Course front page linked

Feedback activity

Overview, Edit questions, Templates, Analysis and Show responses: Blocks displayed and Course front page is linked

3- In the Quiz example, it makes sense for the left blocks to not be displayed in Edit Quiz mode, in order to not clutter the interface and leave more real estate for the numerous settings to be displayed.

4. Is there a consensus that in 2.0 all or most activities, modules and plugins should display the administration blocks in the left column EXCEPT when the editing interface needs more real estate?

5. In a module script, where is the call to display (or not) the administration blocks located?

6. How does one produce the display of the Administration settings proper to the current module, in the left column, e.g. for Quiz, see attached screenshot?

If all this is explained in the Developer docs somewhere, thanks for pointing me to the right page(s).

TIA

Joseph

附件 image00.jpg
評比平均分數: -
In reply to Joseph Rézeau

Re: Moodle 2.0 : recommended Navigation & Settings blocks display

Sam Hemelryk發表於
Hi Joseph,

As far as documentation goes have a look at
http://docs.moodle.org/en/Development:Navigation_2.0_navbar_proposal

However in answer to your points

1. Both the navigation block and the navigation bar (breadcrumbs) are feeding off the same underlying structure so should most of the time overlap. A major design objective for the navigation in Moodle 2 was to make it more consistent, as such the overlap is intentional.
There were several reasons for tying the two to one navigation structure, I won't go into it in this comment or it will get far to long but feel free to ask any questions.

2. First up the course front page not being linked for quiz sounds like a bug to me, I will check that out.
Each page within Moodle is responsible for choosing a layout that best describes its nature, the layout chosen determines where & when blocks are shown (but not which blocks).
The long and short of this is that the page can choose the layout, and the layout controls what block regions are shown on the page.

3. I agree with you on this point, as noted above however this can be customised by the themer or the user (through block management) for those who would like otherwise.

4. Currently I am unaware of any census for what layouts should be used where for modules as this all changed recently in Petr's refactoring of themes, which defines the available layouts. However I am sure that one will emerge as more and more people start to use and develop with Moodle 2.0.

5. Modules have no control over what blocks are shown, but by changing layouts can control whether blocks are shown. The call to choose a layout is as follows:
$PAGE->set_pagelayout('thelayout');
Layouts are defined in the theme's config (see base theme for a full list)

6. Ahhh now this is what the module can/should do with the navigaiton. The link at top of this comment should help out there, and you can always check out the modules themselves for practical examples.

Other possibly helpful links:
http://docs.moodle.org/en/Development:Theme_changes
http://moodle.org/mod/forum/discuss.php?d=140089

Hopefully this has answered a few questions

Cheers
Sam

評比平均分數:Useful (2)