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

Allow forcing of the "embedded" layout when consuming and LTI activity or course

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      Prerequisites

      You will need two moodle sites. One must be a Moodle 3.2 site (SITE A). The other can be 3.1 or above (SITE B)

      Test
      1. On SITE A, enable LTI enrolment and authentication
      2. Go to Site administration ► Security ► HTTP security and tick "Allow frame embedding" and save the changes.
      3. Create or find a course with many enrolled users
      4. In course admin click "Published as LTI tools"
      5. Publish the course or an activity
      6. Copy the proxy URL
      7. On SITE B, go to Site administration ▶︎ Plugins ▶︎ Activity modules ▶︎ External tool ▶︎ Manage tools
      8. Paste the proxy URL
      9. Add the proxy
      10. Edit the tool settings.
      11. Go to a course (still on site B)
      12. Add an external tool
      13. Login as a teacher enrolled to the course.
      14. Select the external tool type that was just added
        • Confirm that the page includes the navigation and admin blocks for the teacher.
      15. Login as a student enrolled to the course
      16. Select the external tool type that was just added
        • If the published tool is an activity, confirm that the page does not include the navigation nor the admin blocks.
        • If the published tool is a course, the page would still display the navigation blocks, but clicking on an activity will only display the activity only without the blocks.
      17. Login as an admin and go back to Site administration ▶︎ Plugins ▶︎ Activity modules ▶︎ External tool ▶︎ Manage tools
      18. Edit the tool type by clicking on the gear icon.
      19. Under Custom parameters, enter

        force_embed=1
        

      20. Save the changes.
      21. Login as a teacher enrolled to the course.
      22. Select the external tool type that was just added
        • Confirm that the page does not include the navigation nor the admin blocks.
      23. Login as a student enrolled to the course
      24. Select the external tool type that was just added
        • Confirm that the page does not include the navigation nor the admin blocks.

      Try entering various values for force_embed and launch the external tool as a teacher for each of the setting:

      Setting Expected page layout Remarks
      force_embed=1 Embedded  
      force_embed=0 Not embedded  
      force_embed = 1 Embedded  
      force_embed = 0 Not embedded  
      force_embed=true Not embedded We're only allowing 0 and 1 values
      force_embed=false Not embedded We're only allowing 0 and 1 values
      Show
      Prerequisites You will need two moodle sites. One must be a Moodle 3.2 site (SITE A). The other can be 3.1 or above (SITE B) Test On SITE A, enable LTI enrolment and authentication Go to Site administration ► Security ► HTTP security and tick " Allow frame embedding " and save the changes. Create or find a course with many enrolled users In course admin click "Published as LTI tools" Publish the course or an activity Copy the proxy URL On SITE B, go to Site administration ▶︎ Plugins ▶︎ Activity modules ▶︎ External tool ▶︎ Manage tools Paste the proxy URL Add the proxy Edit the tool settings. Go to a course (still on site B) Add an external tool Login as a teacher enrolled to the course. Select the external tool type that was just added Confirm that the page includes the navigation and admin blocks for the teacher. Login as a student enrolled to the course Select the external tool type that was just added If the published tool is an activity, confirm that the page does not include the navigation nor the admin blocks. If the published tool is a course, the page would still display the navigation blocks, but clicking on an activity will only display the activity only without the blocks. Login as an admin and go back to Site administration ▶︎ Plugins ▶︎ Activity modules ▶︎ External tool ▶︎ Manage tools Edit the tool type by clicking on the gear icon. Under Custom parameters, enter force_embed=1 Save the changes. Login as a teacher enrolled to the course. Select the external tool type that was just added Confirm that the page does not include the navigation nor the admin blocks. Login as a student enrolled to the course Select the external tool type that was just added Confirm that the page does not include the navigation nor the admin blocks. Try entering various values for force_embed and launch the external tool as a teacher for each of the setting: Setting Expected page layout Remarks force_embed=1 Embedded   force_embed=0 Not embedded   force_embed = 1 Embedded   force_embed = 0 Not embedded   force_embed=true Not embedded We're only allowing 0 and 1 values force_embed=false Not embedded We're only allowing 0 and 1 values
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_32_STABLE
    • Pull Master Branch:
      MDL-56339-master

      Description

      There is currently some custom logic for forcing the "embedded layout" when the role consuming the activity/course is mapped to a student. It was assumed that for teachers, not providing them will access to the settings block would limit the functionality of the activity. Sometimes it would be desirable to be able to force this embedded layout regardless. - maybe via a URL parameter.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  5/Dec/16