Locale warning (not fatal) U_USING_FALLBACK_WARNING: Requested locale "zh_TW.UTF-8" not found, locale "zh@collation=stroke" used instead. The most specific locale supported by ICU relatively to the requested locale is "zh_Hant".
  • line 102 of /lib/classes/collator.php: call to debugging()
  • line 188 of /lib/classes/collator.php: call to core_collator::ensure_collator_available()
  • line 263 of /lib/classes/collator.php: call to core_collator::asort()
  • line 113 of /filter/activitynames/classes/text_filter.php: call to core_collator::asort_objects_by_property()
  • line 79 of /filter/activitynames/classes/text_filter.php: call to filter_activitynames\text_filter->get_activity_list()
  • line 43 of /filter/activitynames/classes/text_filter.php: call to filter_activitynames\text_filter->get_cached_activity_list()
  • line 116 of /filter/classes/text_filter.php: call to filter_activitynames\text_filter->filter()
  • line 185 of /filter/classes/filter_manager.php: call to core_filters\text_filter->filter_stage_post_clean()
  • line 231 of /filter/classes/filter_manager.php: call to core_filters\filter_manager->apply_filter_chain()
  • line 240 of /lib/classes/formatting.php: call to core_filters\filter_manager->filter_text()
  • line 617 of /lib/weblib.php: call to core\formatting->format_text()
  • line 86 of /mod/page/view.php: call to format_text()

The Pop ups course format is based on the Topics format. Editing a course is done in the same way one would create a course using Topics format.

The functionality is achieved by adding javascript to the course page. That same functionality should work in other format by including the javascript call at the end of the format file. Currently, the supported activities include Choice, Custom Certificate, Folder, File resource, H5P, Page, Poster, SCORM, and URL. Other activities can be added, but that requires some custom coding that depends on the module. Not all modules would lend themselves to displaying in a Moodle. Forum, Assignment, and Quiz for example would be too complicated to use in a modal. The modules may still be used in a course. They will just open in a new page, and users will have to navigate back to the course page themselves when they are done.

The functioning of individual supported modules can be controlled. Some modules like File resource and SCORM have options in the settings to display in a pop up. This format respects that and will display on a a new page if that is what is selected.  All activities can be controlled by permission using the capability 'format/popups:view'. If a user has the capability and settings allow, the activity is displayed in a modal other it is not.

最後修改: 2021年 04月 3日(週六) 11:51