Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-5544

Text filters are not applied to entry template in views aligned, tabular, grid and rss.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.8.2
    • 2.8.2
    • Set: Dataform
    • None
    • MOODLE_28_STABLE
    • MOODLE_28_STABLE

    Description

      In order to apply the text filter to the entry template and avoid conflicts with fields that apply the text filters to content, this needs to be done before any replacements.
      For this purpose we can add a method to each view type that has an entry template, which will format the content of the entry template if any, and store it in a property of the object class.
      The content needs to be stored for the length of the script because it is retrieved for for the definition of each entry.
      Since the entry template and its DB support are defined in the view type, the way to apply the text filter is also left to the view discretion. There is no interface or core dataformview API for that.
      Since templates are created by the instructor and we trust the instructor, the format options are set to trusted and noclean.

      Attachments

        Activity

          People

            itamart Itamar Tzadok
            itamart Itamar Tzadok
            Itamar Tzadok Itamar Tzadok
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              12/Jan/15