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

Use FA icons in global search

XMLWordPrintable

    • MOODLE_403_STABLE
    • MOODLE_405_STABLE
    • MDL-81589-main
    • Hide

      Setup

      1. Login as admin.
      2. Go to Site administration > Advanced features and enable "Enable global search".
      3. Create a user named "Amazing User".
      4. Create a course custom field using the Short text type.
      5. Create a course named "Amazing course". Set the Shorttext custom field to something like "Amazing custom field".
      6. Go to Site administration > Server > System paths and set "Path to PHP CLI" with the proper value.
      7. Go to Site administration > Server >Scheduled tasks
      8. Run the "Global search indexing" task.

       

      Testing scenario

      1. Using the global search icon (near the notifications icon), search for "Amazing".
      2. Confirm the icons displayed near each item are using the FontAwesome icons instead of the images (for instance, they should be black instead of grey).
      3. Edit theme/boost/config.php and comment or remove line `$THEME->iconsystem = \core\output\icon_system::FONTAWESOME;`
      4. Reload the page.
      5. Confirm the icons displayed near each item are now using the image version (they should be grey).
      Show
      Setup Login as admin. Go to Site administration > Advanced features and enable "Enable global search". Create a user named "Amazing User". Create a course custom field using the Short text type. Create a course named "Amazing course". Set the Shorttext custom field to something like "Amazing custom field". Go to Site administration > Server > System paths and set "Path to PHP CLI" with the proper value. Go to Site administration > Server >Scheduled tasks Run the "Global search indexing" task.   Testing scenario Using the global search icon (near the notifications icon), search for "Amazing". Confirm the icons displayed near each item are using the FontAwesome icons instead of the images (for instance, they should be black instead of grey). Edit theme/boost/config.php and comment or remove line `$THEME->iconsystem = \core\output\icon_system::FONTAWESOME;` Reload the page. Confirm the icons displayed near each item are now using the image version (they should be grey).
    • 1
    • HQ 2024 Sprint I1.4 Moppies

      While reviewing the FA icons with Sabi for MDL-77537, we've seen that the Global search is always using the image (instead of using FA when available):

            sarjona Sara Arjona (@sarjona)
            sarjona Sara Arjona (@sarjona)
            Carlos Escobedo Carlos Escobedo
            Andrew Lyons Andrew Lyons
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 27 minutes
                2h 27m

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