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

Links added in the navbar do not receive focus/active behaviour (custommenuitems) on the Boost theme

XMLWordPrintable

    • MOODLE_400_STABLE, MOODLE_401_STABLE, MOODLE_402_STABLE
    • MOODLE_402_STABLE
    • MDL-75908-401
    • MDL-75908-master
    • Hide
      1. Apply the patch.
      2. Log in as admin.
      3. Go to Site administration → Appearance → Theme settings.
      4. Set the custommenuitems content to:

        Courses
        -All courses|/course/
        -Course search|/course/search.php
        -###
        -FAQ|https://example.org/faq
        -My Important Course|http://localhost:8000/course/view.php?id=4
        Mobile app|https://example.org/app|Download our app

      5. Save changes (maybe adapt the 'My Important Course' link so that it points to an URL of an existing course in your Moodle).
      6. Click on one of the sub items All courses, Course search, or My Important Course. In all of these cases verify that:
        1. The main menu item Courses is underlined with a blue line
        2. No other main item should have the blue line
        3. The sub-item in Courses that was clicked should have a Check icon on the left
        4. No other sub-item but the clicked one should have a Check icon.
      7. Click on the sub-item 'Course search' and perform a search. When you get the result page verify that:
        1. The main menu item Courses is still underlined with a blue line
        2. The sub-item Course search has the Check icon.

       

      Show
      Apply the patch. Log in as admin. Go to Site administration → Appearance → Theme settings. Set the custommenuitems content to: Courses -All courses|/course/ -Course search|/course/search.php -### -FAQ|https://example.org/faq -My Important Course|http://localhost:8000/course/view.php?id=4 Mobile app|https://example.org/app|Download our app Save changes (maybe adapt the 'My Important Course' link so that it points to an URL of an existing course in your Moodle). Click on one of the sub items All courses , Course search , or My Important Course . In all of these cases verify that: The main menu item Courses is underlined with a blue line No other main item should have the blue line The sub-item in Courses that was clicked should have a Check icon on the left No other sub-item but the clicked one should have a Check icon. Click on the sub-item 'Course search' and perform a search. When you get the result page verify that: The main menu item Courses is still underlined with a blue line The sub-item Course search has the Check icon.  

      When you add internal links to the platform in the custommenuitems option and follow these links, they are not underlined as for the native links of the navigation bar.

      On this screen I added this value to the setting custommenuitemsthis :

      Catalog|/course/index.php

      The new link is therefore correctly displayed in my navbar however once I'm on the page, although present in the navbar, the link is not underlined and it is the link to the homepage which is.

        1. Capture d’écran 2022-10-06 à 10.35.07.png
          Capture d’écran 2022-10-06 à 10.35.07.png
          1.71 MB
        2. MDL-75908.gif
          MDL-75908.gif
          437 kB
        3. nav_drawer.png
          nav_drawer.png
          61 kB
        4. Screenshot from 2022-12-29 10-14-34.png
          Screenshot from 2022-12-29 10-14-34.png
          29 kB
        5. tickgone.webm
          781 kB

            strobotta Stephan Robotta
            Crymson Sylvain Revenu
            Meirza Meirza
            Andrew Lyons Andrew Lyons
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 7 hours
                7h

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