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

In the course/section.php, hide secondary navigation and add breadcrumb

    XMLWordPrintable

Details

    • MOODLE_404_STABLE
    • MOODLE_404_STABLE
    • MDL-80249-main
    • Hide

      Setup

      1. Login as admin.
      2. Create a course with several activities or restore the one attached to this issue (backup-moodle2-activity_examples.mbz). If you prefer to create a course, you'll also need to:
        1. Go to Course settings and, in Course format, select "Show one section per page" for the "Course layout" parameter.
        2. Highlight one of the sections.
        3. Add, at least, one empty section.
      3. Enrol a student to the course.

      Scenario 1. Topics course format with "One section per page"

      1. Login as a teacher.
      2. Go to the main course page.
      3. Open the highlighted section using the arrow icon (if using the Classic theme, open the highlighted section by clicking over the name).
      4. Confirm the expected section is open and it's displayed as highlighted.
      5. Confirm the course name is only displayed in the breadcrumb (the page title is now the section name)
      6. Confirm a breadcrumb is displayed.
      7. Confirm the secondary navigation is not displayed.
      8. Turn edit mode on and confirm that the action menus are displayed.
      9. Confirm the "View" option is not displayed.
      10. Remove highlighted for the section and check it's updated properly.
      11. Highlight again the section and check it's updated properly.
      12. Go to the main course page.
      13. Open the action menu for any of the sections and confirm the View option is displayed.
      14. Login as a student and navigate in the course using several options to access the new course/section.php page.
      15. Check the behaviour is expected and that the section page is displayed properly regardless of the path they choose for accessing.
      16. Switch to the classic theme and repeat the previous steps, to confirm it works as expected too.

       

      Scenario 2. Weeks course format with "All sections on one page"

      1. Login as a teacher.
      2. Go to the main course page.
      3. Edit course settings and update:
        • Format: Weekly format
        • Course layout: Show all sections on one page
        • Change the start date to the current date minus 1 day.
      4. Save changes.
      5. Open the highlighted section by clicking on the section name (it should be the first section called Assignments on the test course).
      6. Confirm the expected section is open and it's displayed as "Current week".
      7. Confirm the course name is only displayed in the breadcrumb (the page title is now the section name)
      8. Confirm a breadcrumb is displayed.
      9. Confirm the secondary navigation is not displayed.
      10. Turn edit mode on and confirm that the action menus are displayed.
      11. Confirm the "View" option is not displayed.
      12. Hide the week using the kebab menu for the section and check it's updated properly.
      13. Show the week again and check it's updated properly.
      14. Go to the main course page.
      15. Open the action menu for any of the sections and confirm the View option is displayed.
      16. Login as a student and navigate in the course using several options to access the new course/section.php page.
      17. Check the behaviour is expected and that the section page is displayed properly regardless of the path they choose for accessing.
      18. Switch to the classic theme and repeat the previous steps, to confirm it works as expected too.
      Show
      Setup Login as admin. Create a course with several activities or restore the one attached to this issue ( backup-moodle2-activity_examples.mbz ). If you prefer to create a course, you'll also need to: Go to Course settings and, in Course format, select "Show one section per page" for the "Course layout" parameter. Highlight one of the sections. Add, at least, one empty section. Enrol a student to the course. Scenario 1. Topics course format with "One section per page" Login as a teacher. Go to the main course page. Open the highlighted section using the arrow icon (if using the Classic theme, open the highlighted section by clicking over the name). Confirm  the expected section is open and it's displayed as highlighted. Confirm the course name is only displayed in the breadcrumb (the page title is now the section name) Confirm a breadcrumb is displayed. Confirm the secondary navigation is not displayed. Turn edit mode on and  confirm  that the action menus are displayed. Confirm the "View" option is not displayed. Remove highlighted for the section and  check  it's updated properly. Highlight again the section and  check  it's updated properly. Go to the main course page. Open the action menu for any of the sections and confirm the View option is displayed. Login as a student and navigate in the course using several options to access the new course/section.php page. Check  the behaviour is expected and that the section page is displayed properly regardless of the path they choose for accessing. Switch to the classic theme and repeat the previous steps, to  confirm  it works as expected too.   Scenario 2. Weeks course format with "All sections on one page" Login as a teacher. Go to the main course page. Edit course settings and update: Format: Weekly format Course layout: Show all sections on one page Change the start date to the current date minus 1 day. Save changes. Open the highlighted section by clicking on the section name (it should be the first section called Assignments on the test course). Confirm the expected section is open and it's displayed as "Current week". Confirm the course name is only displayed in the breadcrumb (the page title is now the section name) Confirm a breadcrumb is displayed. Confirm the secondary navigation is not displayed. Turn edit mode on and  confirm  that the action menus are displayed. Confirm the "View" option is not displayed. Hide the week using the kebab menu for the section and  check  it's updated properly. Show the week again and  check  it's updated properly. Go to the main course page. Open the action menu for any of the sections and confirm the View option is displayed. Login as a student and navigate in the course using several options to access the new course/section.php page. Check  the behaviour is expected and that the section page is displayed properly regardless of the path they choose for accessing. Switch to the classic theme and repeat the previous steps, to  confirm  it works as expected too.
    • HQ 2023 Sprint I4.3 Moppies

    Description

      In MDL-79986, a new page has been added, course/section.php, to display the content of a single section.

      To meet the prototype, the following changes need to be made (they were delayed to a separate issue, in order to make it easier to review and integrate):

      • A breadcrumb should be displayed.
      • The page title should be the section name (instead of the course page).
      • The secondary navigation bar should not be displayed.
      • The "View" option shouldn't be displayed in the action menu when editing mode is on (this option should only appear on the main course page).

      Attachments

        Issue Links

          Activity

            People

              sarjona Sara Arjona (@sarjona)
              sarjona Sara Arjona (@sarjona)
              Laurent David Laurent David
              Amaia Anabitarte Amaia Anabitarte
              Kim Jared Lucas Kim Jared Lucas
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 days, 4 hours, 30 minutes
                  3d 4h 30m

                  Clockify

                    Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.