Blocks: Course Menu block

block_course_menu
Maintained by Picture of Alex ContisAlex Contis
The Course Menu block for Moodle provides navigation between course sections (topics/weeks)
287 sites
111 downloads
22 fans
Current versions available: 4

The Course Menu block, created and maintained by NetSapiensis AB in Sweden, info@netsapiensis.se


The Course Menu block for Moodle provides navigation between course sections (topics/weeks)

The appearance of the block can be controlled with the "Expandable Tree". The topics/weeks can be grouped into chapters and subchapters to facilitate navigation in courses with mani topics/weeks.





There are options to show/hide navigation elements for:


Custom links can be added at the bottom of the block 



This block is released under the GNU General Public Licence http://www.gnu.org/licenses/gpl-3.0.html


Screenshots

Screenshot #0
Screenshot #1
Screenshot #2

Contributors

Picture of Alex Contis
Alex Contis (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Comments

  • Picture of Alex Contis
    Thu, Jan 16, 2014, 4:12 AM
    Hi Derek,

    You are trying to install a version of Course Menu (version 2013010801) that's not compatible with Moodle 2.6.x

    The only version of Course Menu that's compatible with Moodle 2.6.x for the time being is the one published at

    https://github.com/netsapiensis/moodle-block_course_menu/tree/MOODLE_23_STABLE

    Regards
    Alex Contis
    NetSapiensis AB
  • Just wondering . . .
    Fri, Jan 17, 2014, 9:01 AM
    Is 2013082601 the correct version? If so, we have installed it (AFAIK following the instructions you gave us Alex) and it is not working for us with the similar error message below.

    I have asked out host to do a test install on their dev server just in case this is something we are doing wrong on our own dev server.

    Really sorry about this!!

    -Derek
    ---
    get_context_instance() is deprecated, please use context_xxxx::instance() instead.

    line 4020 of /lib/deprecatedlib.php: call to debugging()
    line 601 of /blocks/course_menu/block_course_menu.php: call to get_context_instance()
    line 135 of /blocks/course_menu/block_course_menu.php: call to block_course_menu->get_sections()
    line 296 of /blocks/moodleblock.class.php: call to block_course_menu->get_content()
    line 238 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
    line 956 of /lib/blocklib.php: call to block_base->get_content_for_output()
    line 1008 of /lib/blocklib.php: call to block_manager->create_block_contents()
    line 315 of /lib/blocklib.php: call to block_manager->ensure_content_created()
    line 225 of /theme/decaf/renderers.php: call to block_manager->get_content_for_region()
    line 14 of /theme/decaf/layout/general.php: call to theme_decaf_core_renderer->blocks_for_region()
    line 866 of /lib/outputrenderers.php: call to include()
    line 796 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
    line 244 of /course/view.php: call to core_renderer->header()

    get_context_instance() is deprecated, please use context_xxxx::instance() instead.

    line 4020 of /lib/deprecatedlib.php: call to debugging()
    line 702 of /blocks/course_menu/block_course_menu.php: call to get_context_instance()
    line 135 of /blocks/course_menu/block_course_menu.php: call to block_course_menu->get_sections()
    line 296 of /blocks/moodleblock.class.php: call to block_course_menu->get_content()
    line 238 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
    line 956 of /lib/blocklib.php: call to block_base->get_content_for_output()
    line 1008 of /lib/blocklib.php: call to block_manager->create_block_contents()
    line 315 of /lib/blocklib.php: call to block_manager->ensure_content_created()
    line 225 of /theme/decaf/renderers.php: call to block_manager->get_content_for_region()
    line 14 of /theme/decaf/layout/general.php: call to theme_decaf_core_renderer->blocks_for_region()
    line 866 of /lib/outputrenderers.php: call to include()
    line 796 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
    line 244 of /course/view.php: call to core_renderer->header()

    get_context_instance() is deprecated, please use context_xxxx::instance() instead.

    line 4020 of /lib/deprecatedlib.php: call to debugging()
    line 702 of /blocks/course_menu/block_course_menu.php: call to get_context_instance()
    line 135 of /blocks/course_menu/block_course_menu.php: call to block_course_menu->get_sections()
    line 296 of /blocks/moodleblock.class.php: call to block_course_menu->get_content()
    line 238 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
    line 956 of /lib/blocklib.php: call to block_base->get_content_for_output()
    line 1008 of /lib/blocklib.php: call to block_manager->create_block_contents()
    line 315 of /lib/blocklib.php: call to block_manager->ensure_content_created()
    line 225 of /theme/decaf/renderers.php: call to block_manager->get_content_for_region()
    line 14 of /theme/decaf/layout/general.php: call to theme_decaf_core_renderer->blocks_for_region()
    line 866 of /lib/outputrenderers.php: call to include()
    line 796 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
    line 244 of /course/view.php: call to core_renderer->header()

    get_context_instance() is deprecated, please use context_xxxx::instance() instead.

    line 4020 of /lib/deprecatedlib.php: call to debugging()
    line 702 of /blocks/course_menu/block_course_menu.php: call to get_context_instance()
    line 135 of /blocks/course_menu/block_course_menu.php: call to block_course_menu->get_sections()
    line 296 of /blocks/moodleblock.class.php: call to block_course_menu->get_content()
    line 238 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
    line 956 of /lib/blocklib.php: call to block_base->get_content_for_output()
    line 1008 of /lib/blocklib.php: call to block_manager->create_block_contents()
    line 315 of /lib/blocklib.php: call to block_manager->ensure_content_created()
    line 225 of /theme/decaf/renderers.php: call to block_manager->get_content_for_region()
    line 14 of /theme/decaf/layout/general.php: call to theme_decaf_core_renderer->blocks_for_region()
    line 866 of /lib/outputrenderers.php: call to include()
    line 796 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
    line 244 of /course/view.php: call to core_renderer->header()
    get_context_instance() is deprecated, please use context_xxxx::instance() instead.
    line 4020 of /lib/deprecatedlib.php: call to debugging()
    line 702 of /blocks/course_menu/block_course_menu.php: call to get_context_instance()
    line 135 of /blocks/course_menu/block_course_menu.php: call to block_course_menu->get_sections()
    line 296 of /blocks/moodleblock.class.php: call to block_course_menu->get_content()
    line 238 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
    line 956 of /lib/blocklib.php: call to block_base->get_content_for_output()
    line 1008 of /lib/blocklib.php: call to block_manager->create_block_contents()
    line 315 of /lib/blocklib.php: call to block_manager->ensure_content_created()
    line 225 of /theme/decaf/renderers.php: call to block_manager->get_content_for_region()
    line 14 of /theme/decaf/layout/general.php: call to theme_decaf_core_renderer->blocks_for_region()
    line 866 of /lib/outputrenderers.php: call to include()
    line 796 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
    line 244 of /course/view.php: call to core_renderer->header()
    get_context_instance() is deprecated, please use context_xxxx::instance() instead.
    line 4020 of /lib/deprecatedlib.php: call to debugging()
    line 702 of /blocks/course_menu/block_course_menu.php: call to get_context_instance()
    line 135 of /blocks/course_menu/block_course_menu.php: call to block_course_menu->get_sections()
    line 296 of /blocks/moodleblock.class.php: call to block_course_menu->get_content()
    line 238 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
    line 956 of /lib/blocklib.php: call to block_base->get_content_for_output()
    line 1008 of /lib/blocklib.php: call to block_manager->create_block_contents()
    line 315 of /lib/blocklib.php: call to block_manager->ensure_content_created()
    line 225 of /theme/decaf/renderers.php: call to block_manager->get_content_for_region()
    line 14 of /theme/decaf/layout/general.php: call to theme_decaf_core_renderer->blocks_for_region()
    line 866 of /lib/outputrenderers.php: call to include()
    line 796 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
    line 244 of /course/view.php: call to core_renderer->header()

    Coding error detected, it must be fixed by a programmer: Missing YUI3 module details.

    Debug info:
    Error code: codingerror

    Stack trace:
    line 778 of /lib/outputrequirementslib.php: coding_exception thrown
    line 71 of /blocks/course_menu/block_course_menu.php: call to page_requirements_manager->js_module()
    line 196 of /blocks/course_menu/block_course_menu.php: call to block_course_menu->load_all_js()
    line 296 of /blocks/moodleblock.class.php: call to block_course_menu->get_content()
    line 238 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
    line 956 of /lib/blocklib.php: call to block_base->get_content_for_output()
    line 1008 of /lib/blocklib.php: call to block_manager->create_block_contents()
    line 315 of /lib/blocklib.php: call to block_manager->ensure_content_created()
    line 225 of /theme/decaf/renderers.php: call to block_manager->get_content_for_region()
    line 14 of /theme/decaf/layout/general.php: call to theme_decaf_core_renderer->blocks_for_region()
    line 866 of /lib/outputrenderers.php: call to include()
    line 796 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
    line 244 of /course/view.php: call to core_renderer->header()


  • Just wondering . . .
    Sat, Jan 18, 2014, 5:18 AM
    OK, I'm taking two days off now. We still have two 2.6.1 dev sites (one upgraded, one fresh install) were course menu faults as previous.

    I've asked our wonderful hosting service if they will try course menu on Monday on their test server. We must be doing something wrong. If it goes OK we can upgrade on Tuesday. (Hooray!!)

    On a slightly depressing note I now realise I have posted over eight times in four years about a course menu in Moodle core, and have had no response from anyone at MoodleHQ, except to say "what's wrong with the new single topic format?" My latest effort is here: https://tracker.moodle.org/browse/MDL-27039 You may even like to vote.

    We appreciate your work Alex.

    -Derek

  • Just wondering . . .
    Mon, Jan 20, 2014, 11:56 AM
    OK, latest: installed the DEV version

    https://github.com/netsapiensis/moodle-block_course_menu/tree/MOODLE_23_DEV

    And it works on 2.6.1. Whew.

    -Derek
  • Picture of Usman Asar
    Mon, Feb 10, 2014, 3:26 PM
    Derek, have you tried accessing image place holders on themes after installation? Although Theme works fine on Moodle 2.6.x, but it did created this slight issue of keeping on loading image place holders, which I thought was fault of theme(s) itself at first place, later to uninstall all plug-ins and re-install to see and Course Menu Block showed fault, still waiting for this awesome Block to work smile
  • Just wondering . . .
    Tue, Feb 11, 2014, 4:42 AM
    Usman, you say "accessing image place holders on themes after installation" I am not exactly sure what you mean by this.

    -Derek
  • Just wondering . . .
    Fri, Feb 14, 2014, 6:15 AM
    Just added a page to the docs. Feel free to edit/add to it. http://docs.moodle.org/26/en/Course_Menu_block

    -Derek
  • Just wondering . . .
    Mon, Mar 10, 2014, 6:36 AM
    Thinking about an upgrade to 2.6.2. AL reports an error with "Course Menu"
    "Course Menu gives a fatal error: Coding error detected, it must be fixed by a programmer: Missing YUI3 module details"
    See https://moodle.org/mod/forum/discuss.php?d=255888

    Has anyone else tried Course Menu with 2.6.2?

    -Derek
  • Just wondering . . .
    Wed, Mar 12, 2014, 5:00 AM
    Confirming: After trying it myself, Course Menu v 2014011401 throws an error with 2.6.2 as AL suggested on Monday.

    -Derek
  • Just wondering . . .
    Tue, Mar 18, 2014, 5:52 AM
    I've just been trying to decide what to do about Course Menu.

    I note Alex's comment here: https://moodle.org/mod/forum/discuss.php?d=169107&parent=922800
    I quote: "Hello Hussain, I'm glad you find the Course Menu useful. The Course Menu block is the result of a team of people it's not only my contributions, that's why we normally don't give hints on how to modify the source. We either implement a new feature or leave it out completely"

    Which is part of the huge thread https://moodle.org/mod/forum/discuss.php?d=169107

    So there are others involved with course menu, and there are people posting in the thread who do know what is going on under the hood. I've wasted time with versions of CM (GIT has stuff there, but they are not packaged in nice branches, and an amateur can foul things up). It's now become a show stopper in several ways for one of the sites I deal with. It will still not work with 2.6.2.

    What to do?
    +I've asked about getting it into Core Moodle here: https://tracker.moodle.org/browse/MDL-27039 but little movement. It will not happen I suspect, progress on the UI question re Moodle is a long way off.
    +Do I approach NetSapiensis AB and see about paying them? http://www.netsapiensis.se/ - In their GIT they do say they are the "creator and maintainer" of course menu https://github.com/netsapiensis/moodle-block_course_menu/blob/MOODLE_20_STABLE/course_menu/README.txt
    +Do hire a coder and fork it?

    Ahhh. Such are the joys of open source software.

    Just not sure
  • Just wondering . . .
    Tue, Mar 18, 2014, 6:21 AM
    OK, as you were. I have now read Alex's original email properly https://moodle.org/mod/forum/discuss.php?d=169107 (if all else fails read the documentation)

    I quote:
    When Reporting bugs and issues send mail to: info@netsapiensis.se
    Please send us information about the following:

    Operating system name and version
    Database name and version
    PHP version
    Moodle version (2.x)
    Course Menu version (check in version.php)
    Theme used
    Steps to reproduce the bug
    Send a few screenshots

    Writing my email now.
    Have a nice day.
  • Picture of Jackson D'souza
    Tue, Apr 1, 2014, 9:27 PM
    Hi Derek

    Did you manage to get the Course Menu block working for Moodle 2.6.2

    Thanks
    Jackson
  • Just wondering . . .
    Wed, Apr 2, 2014, 6:25 AM
    Not yet. I have emailed Alex to confirm we have the right version etc, and then sent him the errors we were getting. At the moment they cannot reproduce them. Meeting tomorrow (3 Apr) with tech guys to check everything again then we'll either have solved the problem or will give Alex access to our site to see if they can help.

    -Derek
  • Picture of Jackson D'souza
    Wed, Apr 2, 2014, 6:07 PM
    Thanks Derek. Please keep us informed.

    Regards
    Jackson
  • Just wondering . . .
    Thu, Apr 3, 2014, 9:40 AM
    Jackson, fresh install of 2.6.2, correct version of Course Menu, go to any admin page and javascript dies. Non admin pages are fine. Looking for an object not there. Passing on details and logins to Alex.

    -Derek
Please login to post comments