Best way to modify Navigation block

Best way to modify Navigation block

Doug Bott -
回帖数:4

I would like to modify or create a custom navigation that displays only topic and topic's contents. (Please nevermind why 眨眼)   Learners will always have acces to only one course, so I dont need the courses listed. Other navigation is provided elsewhere. See my example below.

in another thread someone suggested modifying navigationlib.php but I do not want to touch core files. Could someone point me in the right direction as to where I could begin to research this. I am new to Moodle but not to php. thank you

For reference: http://moodle.org/mod/forum/discuss.php?d=170325

CURRENT  NAVIGATION ===================
|Home |_My home |_Site pages | |-Site blogs | |-Tags | |_Calendar | |_My profile | |_View profile | |_Forum posts | | |_Posts | | |_Discussions | | | |_Blogs | | |_View all of my entries | | |_Add a new entry | | | |_Messages | |_My private files | |_My courses |_math2 |_Participants |_General |_Topic <<<<<<<<<< |_appendix a |_accessibility |_appendix b |_approaches
DESIRED NAVIGATION ===================
Topic <<<<<<<<<< |_appendix a |_accessibility |_appendix b |_approaches
回复Doug Bott

Re: Best way to modify Navigation block

Derek Chirnside -

Alex, You may like to look at this plugin: http://moodle.org/plugins/view.php?plugin=block_course_menu

We have installed it on two of the servers I work with, and it seems to be robust.  It creates a nice soluton to the scroll of death, removes clutter and complexity, and looks nice.  Alex, the maintainer is quick and responsive to questions.

Gavin's review is here: http://www.somerandomthoughts.com/blog/2011/05/11/review-course-menu-block-for-moodle-2-0/ (old now)

There are some cool extra functions in the menu, and you may be able to get what you want with no programming.  If you like I can give you alink to a course with the menu installed.  (I can even give you teacher access if you want to see behind the scenes)

-Derek

回复Doug Bott

Re: Best way to modify Navigation block

Derek Chirnside -

As they say Alex, a picture is worth a thousand words.  This is what the course menu looks like with NO frills in the menu config, with layout set to single sections.  You can add a whole lot of regular items plus custom links.  I'll have user data and feedback in about two weeks.

-Derek

回复Derek Chirnside

Re: Best way to modify Navigation block

Doug Bott -

Hey, Derek. I checked this out but it is not quite what I need. I am new to moodle so I dont have the lingo down but what I was told to do does not involve sections. Essentially each course will be made of a single topic with a bunch of pages and a quiz, maybe a glossary. There will be no categories, no profiles, and no site pages.

I did make a startling discovery. There is a block called Main Menu Block used to put activities on the front page (go figure)..Well turns out if you put it on a course it shows whatever activities are on the first topic.

Still, that is a very iffy solution, so I will take a closer look at your suggestion when I get in to work.

Thanks for all of help.

回复Doug Bott

Re: Best way to modify Navigation block

Derek Chirnside -

You mentoned this:

DESIRED NAVIGATION  =================== 
Topic <<<<<<<<<< |_appendix a |_accessibility |_appendix b |_approaches

This to me looks like a course with four sections (sometimes referred to as topics)

The way you are describing things here (and I may have got it wrong) you may like the grid format.  http://moodle.org/plugins/view.php?plugin=format_grid  One section for each of the 4 items in your menu.

-Derek