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

Apply filtering to database templates

    XMLWordPrintable

Details

    • MOODLE_311_STABLE, MOODLE_32_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE, MOODLE_401_STABLE
    • Hide

      Create a database activity with one of each type of field

      Create a glossary

      Enable Glossary auto-linking filter

      Add a glossary with an entry of glossaryentry

      Edit the database view single template and put the word glossaryentry into it

      Create a database record with the word glossaryentry in a text and textarea field

      The word glossaryentry should be auto linked where it appears in the template (by this patch) and the textarea field (pre-existing) but NOT in the text field (since this patch does not alter the contents of fields.

       

       

      Create a field called glossaryentry

      Enable developer debugging

      View the record

      You should see a warning that there has been a collision between a tag and a filter

      Show
      Create a database activity with one of each type of field Create a glossary Enable Glossary auto-linking filter Add a glossary with an entry of glossaryentry Edit the database view single template and put the word glossaryentry into it Create a database record with the word glossaryentry in a text and textarea field The word glossaryentry should be auto linked where it appears in the template (by this patch) and the textarea field (pre-existing) but NOT in the text field (since this patch does not alter the contents of fields.     Create a field called glossaryentry Enable developer debugging View the record You should see a warning that there has been a collision between a tag and a filter

    Description

      None of filters for Moodle (e.g. Jmol) work with the database module (from Moodle 1.8 upwards, including 2+ and 3+ versions). 
      E.g.: if you place multimedia file into database field (with type File), there is no player showed as obvious in HTML page activity, only file name with link. https://tracker.moodle.org/browse/MDL-12770

      Similar issue was reported for different filters (MDL-10851). Reopened as new issue from https://tracker.moodle.org/browse/MDL-12770. This deals with database module function, solving this will be huge improvement in functionality. It is better discuss functionality and reasons for not to work on this than neglect it as old issue.

      Attachments

        Issue Links

          Activity

            People

              andrew_dc_hancox Andrew Hancox
              martin.slavik Martin Slavík
              Daniel Neis Araujo Daniel Neis Araujo
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Amaia Anabitarte, Carlos Escobedo, Laurent David, Mikel Martín Corrales, Sabina Abellan, Sara Arjona (@sarjona), David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              45 Vote for this issue
              Watchers:
              28 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 hours, 1 minute
                  5h 1m