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

Add a means of prepending items to the navbar.

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: 2.6
    • Component/s: Navigation
    • Labels:
    • Testing Instructions:
      Hide

      This code isn't used in core so I've provided a test script.

      1. Download the test script (test.php) attached to this issue.
      2. Copy it to the root of your moodle directory.
      3. Browse to it in your browser.
      4. Check the first three items on the navbar are One, Two, and Three

      Finally run:

      vendor/bin/phpunit --verbose lib/tests/navigationlib_test.php
      

      Show
      This code isn't used in core so I've provided a test script. Download the test script (test.php) attached to this issue. Copy it to the root of your moodle directory. Browse to it in your browser. Check the first three items on the navbar are One, Two, and Three Finally run: vendor/bin/phpunit --verbose lib/tests/navigationlib_test.php
    • Affected Branches:
      MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE
    • Pull Master Branch:
      wip-MDL-41081-m26

      Description

      At present you can add items to the end of the navbar but you cannot prepend them to the start.

      This was asked about in the forums: https://moodle.org/mod/forum/discuss.php?d=233788

      It makes sense to add it as a feature and its implementation would be dead easy.

        Attachments

          Activity

            People

            Assignee:
            samhemelryk Sam Hemelryk
            Reporter:
            samhemelryk Sam Hemelryk
            Peer reviewer:
            Dan Poltawski
            Integrator:
            Damyon Wiese
            Tester:
            Frédéric Massart
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              18/Nov/13