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

Add additional element callbacks to repository API

    XMLWordPrintable

Details

    • Improvement
    • Status: Development in progress
    • Minor
    • Resolution: Unresolved
    • Future Dev
    • None

    Description

      It would be very useful to have the ability to specify additional callbacks and actions to be added to the repository API, so that it is displayed alongside the forms from any repository plugin.

      The form template objects passed into the filepicker could callback to plugins to inject additional form elements, and then contain additional validation and submission actions to handle the additional input in the forms.

      The main use case here is to add a sort of "custom fields" style implementation, where additional file data can be specified, such as Department, Categorisation etc that goes beyond the upload context, and allows for this data to be stored at upload time in whatever manner a plugin decides.

      Attachments

        Activity

          People

            peterburnett Peter Burnett
            peterburnett Peter Burnett
            David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo, Matteo Scaramuccia, David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo, David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

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