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

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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.1
    • Component/s: Navigation
    • Labels:
    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_21_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE
    • Pull Master Branch:
      MDL-27600-master

      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  1 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    1/Jul/11