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

Add mimetype for Smart Notebook files and icons to pix


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

      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.


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

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


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