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

Number of templates not viewable in template library

    XMLWordPrintable

    Details

    • Type: Epic
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.1.2, 3.2
    • Fix Version/s: None
    • Component/s: General
    • Labels:
    • Affected Branches:
      MOODLE_31_STABLE, MOODLE_32_STABLE
    • Epic Name:
      Templates syntax fixes

      Description

      There are a number of templates in moodle that can not be viewed in Site administration ► Development ► Template library
      instead the template source code is displayed. The other problem is that developers copy the incorrect syntax

      Templates are:
      block_lp/*
      core/action_link
      core/action_menu_*
      core/actions
      core/chart
      core/chooser*
      core/dataformat_selector
      core/email*
      core/help_icon
      core/loading
      core/login
      core/modal*
      core/prevent*
      core/select_time
      core/skip_links
      core_admin/setting_configpasswordunmask (example broken)
      core_admin/settings_search_results (example broken)
      core_course/modchooser
      core_form/editor_textarea
      core_grades/*
      core_question/qbank_chooser
      core_search/result
      gradereport_singleview/*
      mod_assign/* (some)
      mod_forum/* (most of them, mod_forum/forum_post_emaildigestbasic_htmlemail even throws AJAX exception)
      mod_lti/* (some)
      mod_quiz/question_chooser
      report_competency/*
      theme_boost/ - all these templates throw exception, we need to fix this in the template library API*
      tool_lp/* (many)
      tool_templatelibrary/list_templates_page (hehe, recursion )

      These templates were introduced in
      MDL-55831, MDL-50439, MDL-54987, MDL-55796, MDL-55701, MDL-55517, MDL-55564, MDL-55594, MDL-55564, MDL-55796, MDL-55584, MDL-55797, MDL-55584, MDL-55594, MDL-55797 - Frédéric Massart
      MDL-51603, MDL-52990 - Brendan Heywood
      MDL-55727, MDL-55727, MDL-52154 - Ryan Wyllie
      MDL-55402, MDL-55417, MDL-52954, MDL-51043, MDL-55996, MDL-49459 - Damyon Wiese
      MDL-31989 - David Monllaó
      MDL-52137 - Andrew Nicols

      I created this issue as an Epic, feel free to add issues to it to fix individual templates.

      Rajesh Taneja, do you think it is reasonable to add a QA test that would ensure that all templates in the templates library have example context?

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated: