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

Improve the template library to be able to dynamically change the context data

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: Future Dev
    • Fix Version/s: None
    • Component/s: Administration, UX
    • Labels:
      None

      Description

      ie given a template such as core_admin/setting_configcheckbox it has context vars of:

      Example context (json):

      { "name": "test", "no": "False", "value": "True", "id": "test0", "checked": "checked", "readonly": false }

      The simple approach is we show the context in a textarea and you can directly edit it. As you live edit the context if the json is valid then it will re-render the template preview using that new context.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            brendanheywood Brendan Heywood
            Participants:
            Component watchers:
            Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Huong Nguyen, Barbara Ramiro, Bas Brands, Mathew May
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: