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

Add mimetype for Smart Notebook files and icons to pix

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Duplicate
    • Minor
    • None
    • 2.4.1
    • Files API, Libraries
    • MOODLE_24_STABLE

    Description

      Some of our teachers use Smart Notebook files in Moodle with interactive whiteboards. It is helpful to have these in filelib.php and pix/f so that they can be downloaded and displayed with all the other files in the course.

      I have the below added to /lib/filelib.php under the function get_mimetypes_array()

      'gallery'	=> array ('type'=>'application/x-smarttech-notebook', 'icon'=>'notebook'),
      'galleryite'	=> array ('type'=>'application/x-smarttech-notebook', 'icon'=>'notebook'),
      'gallerycollection'	=> array ('type'=>'application/x-smarttech-notebook', 'icon'=>'notebook'),
      'notebook'	=> array ('type'=>'application/x-smarttech-notebook', 'icon'=>'notebook'),
      'nbk'	=> array ('type'=>'application/x-smarttech-notebook', 'icon'=>'notebook'),
      

      I also have the different pix/f/ images but will try to upload them separately.

      This will save me (any maybe others) from having to manually add these after each upgrade.

      Thanks
      Alex

      Attachments

        1. notebook-96.png
          notebook-96.png
          7 kB
        2. notebook-80.png
          notebook-80.png
          6 kB
        3. notebook-72.png
          notebook-72.png
          6 kB
        4. notebook-64.png
          notebook-64.png
          6 kB
        5. notebook-48.png
          notebook-48.png
          5 kB
        6. notebook-32.png
          notebook-32.png
          4 kB
        7. notebook-256.png
          notebook-256.png
          21 kB
        8. notebook-24.png
          notebook-24.png
          4 kB
        9. notebook-128.png
          notebook-128.png
          9 kB
        10. notebook.png
          notebook.png
          3 kB

        Issue Links

          Activity

            People

              barbararamiro Barbara Ramiro
              agrowe Alex Rowe
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Clockify

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