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

Form element and admin setting type to choose file types and type groups

    XMLWordPrintable

Details

    • MOODLE_30_STABLE, MOODLE_31_STABLE
    • MOODLE_34_STABLE
    • MDL-53240-master-filetypewidgets
    • Hide

      1. Go to Site administration > Notifications page to make sure the upgrade procedure has run and the the new AJAX service is installed (you should do it normally but just in case).
      2. Put attached test-filetypes-*.php scripts into the Moodle directory root and view each in your browser.

      Show
      1. Go to Site administration > Notifications page to make sure the upgrade procedure has run and the the new AJAX service is installed (you should do it normally but just in case). 2. Put attached test-filetypes-*.php scripts into the Moodle directory root and view each in your browser.

    Description

      A new form element to allow selection of file types and type groups is desirable for the Assignment (MDL-39913), Workshop (MDL-50794), and Forum activities. This feature adds that functionality, along with a new admin setting type for the same effect as they are closely related functionality-wise. It gives you a ;-delimited list of types that you can simply explode and feed to the 'accepted_types' option of the filemanager element.

      Attachments

        1. filetypeselection.png
          filetypeselection.png
          51 kB
        2. test-filetypes-form.php
          2 kB
        3. test-filetypes-setting.php
          2 kB
        4. tree-clean.png
          tree-clean.png
          90 kB

        Issue Links

          Activity

            People

              mudrd8mz David Mudrák (@mudrd8mz)
              jonof Jonathon Fowler
              Luca Bösch Luca Bösch
              Dan Poltawski Dan Poltawski
              Simey Lameze Simey Lameze
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Sujith Haridasan
              Votes:
              9 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                13/Nov/17