Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-27600

Navigation: Should be able to add nodes at other places than end of list

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • 2.1
    • 2.1
    • Navigation
    • MOODLE_21_STABLE
    • MOODLE_21_STABLE
    • MDL-27600-master
    • Hide

      Test difficulty: EASY

      1. I added a unit test for this; run unit tests for the path: lib/simpletest/testnavigationlib.php (should be green)
      2. Look at existing Moodle pages which use the navigation block. Suggested examples:

      • Course page
      • Module page
        Verify that navigation block still appears as before this patch.
      Show
      Test difficulty: EASY 1. I added a unit test for this; run unit tests for the path: lib/simpletest/testnavigationlib.php (should be green) 2. Look at existing Moodle pages which use the navigation block. Suggested examples: Course page Module page Verify that navigation block still appears as before this patch.

    Description

      When updating navigation, such as in the module_extend_settings_navigation function, currently Moodle only lets you add an option at the end.

      For some plugins it is a usability benefit to add options at another position in the list. For example I have a custom module which includes the 'Turn editing on' option. I would like this to be in the first place in the module's setting block, just as the same option is included in the first place of the course settings block.

      I am coding this, will update with details soonish.

      Attachments

        Issue Links

          Activity

            People

              quen Sam Marshall
              quen Sam Marshall
              Sam Hemelryk Sam Hemelryk
              Aparup Banerjee Aparup Banerjee
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Clockify

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.