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

Add the previous and next links to navigate between activities

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4
    • Fix Version/s: 3.4
    • Component/s: Course
    • Labels:
    • Testing Instructions:
      Hide
      Prerequisites
      1. Visit 'Site administration' > 'Advanced features'.
      2. Enable 'Allow stealth activities'.
      3. Create a course with completion tracking enabled.
      4. Enrol one student into that course.
      5. Create 6 activities (A, B, C, D, E, F).
      6. Hide activity 'A' and then click again to make it available (stealth).
      7. Hide activity 'B'.
      8. Set activity 'D' to restricted until a future date.
      9. Set activity 'E' to complete when the student has viewed it.
      10. Set activity 'F' to restricted until 'E' is complete.
      Test 1
      1. Log in as the admin.
      2. Click on activity 'A'.
      3. Confirm there are no links to navigate as it is stealthed.
      4. Go back to the course page.
      5. Click on 'B'.
      6. Ensure you can use the links at the bottom to click back and forth between the activities, being able to browse through them all except 'A' (as it is stealthed).
      7. Ensure on the first activity you can only see a link to the next activity.
      8. Ensure on the last activity you can only see a link to the previous activity.
      9. Ensure the link to the hidden activity 'B' shows '(hidden)'.
      Test 2
      1. Log in as the student.
      2. Click on activity 'C'.
      3. Ensure you can use the links at the bottom to click back and forth between the activities, and am only able to browse to C, E and F.
      4. Ensure on the first activity you can only see a link to the next activity.
      5. Ensure on the last activity you can only see a link to the previous activity.
      Test 3
      1. Repeat Test 2 on Clean.
      Test 4
      1. Create a basic theme based on Bootstrapbase and use it.
      2. Repeat Test 2.
      Test 5
      1. Repeat the Test 2 (Boost), 3 and 4 using an RTL language (eg. hebrew) and check that the links are swapped.
      Test 6
      1. Create a course.
      2. Add a File resource to the course that contains a .txt file.
      3. Add a URL with the setting 'Display' set to 'Open'.
      4. Edit the File resource and click 'Save and display'.
      5. Confirm you can navigate back and forth between the modules without it opening or directing you to another page.
      6. Confirm you can still download the file and access the URL via links.
      Test 7
      1. Create a course.
      2. Add a File resource to the course that contains a .txt file.
      3. Add a URL with the setting 'Display' set to 'Open'.
      4. Click on the File resource and confirm you are prompted to download the file.
      5. Click on the URL and ensure it takes you to that URL.
      6. Edit the File resource and click 'Save and display'.
      7. Ensure the file is not downloaded and you are taken to the page where you can click to download it.
      8. Edit the URL resource and click 'Save and display'.
      9. Ensure you are not redirected to the URL and are taken to the page where you can click to go to it.
      Test 8
      1. Create a course.
      2. Add an assignment.
      3. Add an LTI activity (Add an LTI activity (use tool URL https://api.feedbackfruits.com/v1/lti/launch/video)).
      4. Click on the LTI activity and confirm you can navigate between the assign and LTI module.
      Test 9
      1. Repeat Test 8 on Clean.
      Test 10
      1. Create a basic theme based on Bootstrapbase and use it.
      2. Repeat Test 8.
      Show
      Prerequisites Visit 'Site administration' > 'Advanced features'. Enable 'Allow stealth activities'. Create a course with completion tracking enabled. Enrol one student into that course. Create 6 activities (A, B, C, D, E, F). Hide activity 'A' and then click again to make it available (stealth). Hide activity 'B'. Set activity 'D' to restricted until a future date. Set activity 'E' to complete when the student has viewed it. Set activity 'F' to restricted until 'E' is complete. Test 1 Log in as the admin. Click on activity 'A'. Confirm there are no links to navigate as it is stealthed. Go back to the course page. Click on 'B'. Ensure you can use the links at the bottom to click back and forth between the activities, being able to browse through them all except 'A' (as it is stealthed). Ensure on the first activity you can only see a link to the next activity. Ensure on the last activity you can only see a link to the previous activity. Ensure the link to the hidden activity 'B' shows '(hidden)'. Test 2 Log in as the student. Click on activity 'C'. Ensure you can use the links at the bottom to click back and forth between the activities, and am only able to browse to C, E and F. Ensure on the first activity you can only see a link to the next activity. Ensure on the last activity you can only see a link to the previous activity. Test 3 Repeat Test 2 on Clean. Test 4 Create a basic theme based on Bootstrapbase and use it. Repeat Test 2. Test 5 Repeat the Test 2 (Boost), 3 and 4 using an RTL language (eg. hebrew) and check that the links are swapped. Test 6 Create a course. Add a File resource to the course that contains a .txt file. Add a URL with the setting 'Display' set to 'Open'. Edit the File resource and click 'Save and display'. Confirm you can navigate back and forth between the modules without it opening or directing you to another page. Confirm you can still download the file and access the URL via links. Test 7 Create a course. Add a File resource to the course that contains a .txt file. Add a URL with the setting 'Display' set to 'Open'. Click on the File resource and confirm you are prompted to download the file. Click on the URL and ensure it takes you to that URL. Edit the File resource and click 'Save and display'. Ensure the file is not downloaded and you are taken to the page where you can click to download it. Edit the URL resource and click 'Save and display'. Ensure you are not redirected to the URL and are taken to the page where you can click to go to it. Test 8 Create a course. Add an assignment. Add an LTI activity (Add an LTI activity (use tool URL https://api.feedbackfruits.com/v1/lti/launch/video )). Click on the LTI activity and confirm you can navigate between the assign and LTI module. Test 9 Repeat Test 8 on Clean. Test 10 Create a basic theme based on Bootstrapbase and use it. Repeat Test 8.
    • Affected Branches:
      MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE
    • Pull Master Branch:
      MDL-59612-master

      Description

      These links once existed, but are no more. Let's bring them back.

      Things to consider -

      1. Each activity should have a next/previous link in the footer of the content region that will navigate to the next/previous available activity for the course
      2. The first activity in the course should not show a previous link.
      3. The last activity in the course should not show a next link.
      4. The next / previous links should be shown on every page of each activity that uses the “in-course” layout.
      5. The next / previous links should contain the name of the activity that the user will navigate to and an arrow icon indicating next/previous.
      6. The user should never see a link to an activity that they cannot access.
      7. “Stealth” activities should not contain previous / next links and should not be displayed in the next/previous links of any other activities.
      8. The link to a hidden activity should have a "(hidden)" suffix.
      9. The previous link should be displayed on the left side of the page (in ltr languages) and the next link should be displayed on the right (in ltr languages)
      10. The previous icon should come before the activity name, and the next icon should come after the activity name.
      11. In rtl languages the positions of the next/previous links should be reversed.
      12. In rtl languages the direction of the arrow icons should be reversed.
      13. When view is required to complete an activity, and an activity completion is required to see the next activity. On the page that triggers the view - the link to the next activity should be immediately displayed and available.
      14. Activities that open in a new page (like url) when accessed via next/previous links should not open in a new window - but should show the summary of the activity with a clickable link to open the activity as normal.
      15. Continuously clicking on “previous” links should always take me to the first activity I can see in the course (eventually).
      16. Continuously clicking “next” links should always take me to the last activity I can see for the course.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                14 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  13/Nov/17