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

Course formats hide activities and resources behind URLs - need Core changes for new formats to be developed



    • Type: New Feature
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.4
    • Fix Version/s: BACKEND
    • Component/s: Course
    • Labels:
    • Affected Branches:


      SingleActivity course format is a good example of how activities and resources can be presented directly to the student (rather than as another URL to click), however that format is limited to one single activity.

      Page per section view is a great start, but the student still sees activities as URLs rather than engaging directly into the activity. For Moodle to provide a more immersive experience we need the ability for the course designer to embed the course activities and resources into the course.

      The Print_Section function in course/lib.php is hard wired to display a URL (except for label), and does not give developers the opportunity to expand course formats beyond variations on the current theme (at least not without duplicating significant core code and modifying it and creating a development burden)

      Also not all activities and resources have renderers, and rely instead upon a modname/view.php file to deliver the activity.

      The following may help in a development resource friendly way:

      Create a new feature in modules - function modname_supports $feature "FEATURE_MOD_EMBEDS" plus the appropriate support in the module (renderer?)

      Create a new option in activity presentation during course edit add activity (Display URL or Display Activity)

      Where the course developer elects Display Activity and the module is does not support FEATURE_MOD_EMBEDS then get_url() takes the student directly to modname/view.php and also provides modname/view.php with a return URL that takes the student to the next section.


          Issue Links



              Unassigned Unassigned
              brianlmerritt Brian Merritt
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              2 Vote for this issue
              6 Start watching this issue