-
Bug
-
Resolution: Fixed
-
Blocker
-
4.0
-
MOODLE_400_STABLE
-
MOODLE_400_STABLE
-
MDL-73679-master-2 -
With the renderers in 3.11 and before course formats were able to override individual methods in order to change how some parts of the course looks.
In 4.0 it is possible to override only the output classes, which is mostly useless because the DATA for the course format is always the same anyway, course formats what to change how it LOOKS (i.e. override templates).
Here is the example:
I want to modify in my course format how the button "Mark as done" looks. The template responsible for it is course/templates/completion_manual.mustache
This template is referenced by name from the template core_courseformat/local/content/cm/activity_info , and this template referenced by name from core_courseformat/local/content/cm and that one from core_courseformat/local/content/section/cmitem and that one from core_courseformat/local/content/section/cmlist and that one from core_courseformat/local/content/section and that one from core_courseformat/local/content
So it looks like I have to copy 7 templates to my course format, modify one line in each of them and also override the section_renderer::render() function because it hardcodes the 'core_courseformat/local/' prefix for templates as well
- caused a regression
-
MDL-80683 Course templates /content/section/content.mustache has an extra </div> tag
-
- Closed
-
- has a non-specific relationship to
-
MDL-73762 The functions in the core_courseformat\output\local\* classes are too long
-
- Closed
-
- has been marked as being related by
-
MDL-74083 'completionhelp' in content.mustache
-
- Open
-
-
MDL-83573 Make course nav drawer templates easier to override
-
- Closed
-
- split to
-
MDL-73680 Deprecation messages in the new course format API do not provide details
-
- Open
-
- Testing discovered
-
MDL-73803 Course format options squat on course object and are assumed to exist
-
- Closed
-