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

Activity chooser doesn't filter custom icons for preconfigured LTI tools

    • MOODLE_401_STABLE, MOODLE_403_STABLE
    • MDL-81938_403
    • MDL-81938_main
    • Hide

      Add a custom CSS rule that adds filtering also to the specific custom LTI tool icons in the activity chooser.

      Show
      Add a custom CSS rule that adds filtering also to the specific custom LTI tool icons in the activity chooser.
    • Hide
      1. Create a preconfigured tool
        1. Tool configuration usage: Show in activity chooser and as preconfigured tool
        2. Icon URL: <wwwroot>/theme/image.php/boost/mod_quiz/-1/monologo?filtericon=1
      2. Go to a course and open the activity chooser
      3. Make sure the icon is filtered (i.e. appears white in Moodle < 4.4)
      Show
      Create a preconfigured tool Tool configuration usage: Show in activity chooser and as preconfigured tool Icon URL: <wwwroot>/theme/image.php/boost/mod_quiz/-1/monologo?filtericon=1 Go to a course and open the activity chooser Make sure the icon is filtered (i.e. appears white in Moodle < 4.4)

      We use monologo style custom icons for our preconfigured LTI tools. We would like for them to be filtered just like all the other activity icons so they have the same style.

      You can add the `filtericon` parameter to custom icon URLs of preconfigured LTI tools. Then icons of activities created from this preconfigured tool will be filtered as expected when seeing them on the course page or when viewing the activity's page. But they don't get filtered in the activity chooser. The reason for that is this condition. My suggestion is to also filter custom LTI icons if they contain the `filtericon` parameter in their URL.

            tschroeder Tim Schroeder
            tschroeder Tim Schroeder
            Glyn (Mathew) May Glyn (Mathew) May
            Votes:
            8 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 15 minutes
                15m

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