-
New Feature
-
Resolution: Fixed
-
Major
-
4.5
-
MOODLE_405_STABLE
-
MOODLE_405_STABLE
-
MDL-82385-main -
-
Moppies PB candidates
Supporting the new course hierarchy, specifically, subsections, comes with some challenges for the mobile app as we need to support older versions of the apps (people not updating, devices that cannot update to the app 4.5 because minimum Android/iOS versions or custom apps) but also support the new functionality in 4.5
After discussing this with tusefomal we've drafted the following plan:
For older versions of the Moodle app, 4.4 and previous:
Option 1:
- Support the subsection by adding site plugin support to mod_subsection in order to print a link to a page in the app itself that will display the section contents
- The previous should work as delegated sections should not be displayed in the app even if we receive them by WS because they will have the field hiddenbysections set to 1, the previous does not prevent to display the section when linked directly
- The site plugin will be ignored by the version 4.5 of the app
- In 5.5 the site plugin should be removed from core
Option 2:
- Change the core_course_get_contents to avoid returning the mod_subsection module (older versions of the app)
- Display sections at the end of re-order them
Option 3:
- Create a Site plugin to display the subsection when clicking on the mod_subsection activity
- Change the core_course_get_contents to return the sub sections name within a span or div tag with a class
- Hide the subsections content, course index link and bottom buttons via site plugin CSS using the previous class
For app version 4.5:
- The site plugin will be ignored by the version 4.5 of the app
- Return via the core_course_get_contents the id of the delegated section for the mod_subsection instances returned as part of the structure. This can be achieved using the module->customdata field (that is set via lib.php callback get_coursemodule_info)
- Add a new field in the section structure to indicate whether it is a delegated section or not
- blocks
-
MOBILE-4442 Course hierarchy re-design
- Closed
- has to be done after
-
MDL-81772 Identify all the requirements for integrate mod_subsection and delegated sections in the Moodle Mobile APP.
- Closed