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

    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-53240-master-filetypewidgets

      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

              • Votes:
                9 Vote for this issue
                Watchers:
                13 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  13/Nov/17