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

Create a new course section page

    XMLWordPrintable

Details

    • MOODLE_404_STABLE
    • MOODLE_404_STABLE
    • MDL-79986-main
    • Hide

      Setup

      1. Login as admin.
      2. Go to Site administration > Experimental settings and enable "Enable communication providers"
      3. 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.
      4. Enrol a student to the course.
      5. From the main course page, go to More > Communication and choose "Custom link". For the "Custom link URL" you can use any URL (for instance, moodle.org).

       

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

      1. Login as a teacher.
      2. Go to the main course page.
      3. Check the section names have a link to open the section (the URL for these links is something like "/course/section.php?id=xx").
      4. Check there are no chevrons near the section names.
      5. Check the communication icon is displayed.
      6. Open the highlighted section using the arrow icon.
      7. Confirm the expected section is open and it's displayed as highlighted.
      8. Check the communication icon is displayed.
      9. Turn edit mode on and confirm that the action menus are displayed.
      10. Check the communication icon is still displayed.
      11. Remove highlighted for the section and check it's updated properly.
      12. Highlight again the section and check it's updated properly.
      13. Go to the main course page.
      14. Click any of the section names and check the in-place editor is displayed now (to change it).
      15. Open the action menu for any of the sections and select the Permalink option.
      16. Check the URL contains "/course/section.php?id=".
      17. Login as a student and navigate in the course using several options to access the new course/section.php page.
      18. Check the behaviour is expected and that the section page is displayed properly regardless of the path they choose for accessing.
      19. 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
      4. Save changes.
      5. Check the section names have a link to open the section (the URL for these links is something like "/course/section.php?id=xx").
      6. Check the chevrons near the section names, collapse/expand them.
      7. Open the highlighted section by clicking on the section name.
      8. Confirm the expected section is open and it's displayed as highlighted.
      9. Turn edit mode on and confirm that the action menus are displayed.
      10. Hide the week using the kebab menu for the section and check it's updated properly.
      11. Show the week again and check it's updated properly.
      12. Go to the main course page.
      13. Click any of the section names and check the in-place editor is displayed now (to change it).
      14. Open the action menu for any of the sections and select the Permalink option.
      15. Check the URL contains "/course/section.php?id=".
      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.

      Scenario 3. Component library

      1. Run 

        grunt componentlibrary

      2. Login as admin
      3. Go to Site administration > Development > UI Component library
      4. Search for the icons page and load it (admin/tool/componentlibrary/docspage.php/moodle/components/moodle-icons)
      5. Check that the i/view icon is displayed in the "List of mapped Font Awesome icons" section.

       

      Scenario 4. Always link course sections setting removed

      1. Login as admin.
      2. Go to "Site administration > Administration > Appearance > Navigation"
      3. Check the "Always link course sections" [linkcoursesections] setting is not displayed.
      Show
      Setup Login as admin. Go to Site administration > Experimental settings and enable "Enable communication providers" 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. From the main course page, go to More > Communication and choose "Custom link". For the "Custom link URL" you can use any URL (for instance, moodle.org).   Scenario 1. Topics course format with "One section per page" Login as a teacher. Go to the main course page. Check the section names have a link to open the section (the URL for these links is something like "/course/section.php?id=xx"). Check there are no chevrons near the section names. Check the communication icon is displayed. Open the highlighted section using the arrow icon. Confirm the expected section is open and it's displayed as highlighted. Check the communication icon is displayed. Turn edit mode on and confirm that the action menus are displayed. Check the communication icon is still 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. Click any of the section names and check the in-place editor is displayed now (to change it). Open the action menu for any of the sections and select the Permalink option. Check the URL contains "/course/section.php?id=". 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 Save changes. Check the section names have a link to open the section (the URL for these links is something like "/course/section.php?id=xx"). Check the chevrons near the section names, collapse/expand them. Open the highlighted section by clicking on the section name. Confirm the expected section is open and it's displayed as highlighted. Turn edit mode on and confirm that the action menus are 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. Click any of the section names and check the in-place editor is displayed now (to change it). Open the action menu for any of the sections and select the Permalink option. Check the URL contains "/course/section.php?id=". 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 3. Component library Run  grunt componentlibrary Login as admin Go to Site administration > Development > UI Component library Search for the icons page and load it (admin/tool/componentlibrary/docspage.php/moodle/components/moodle-icons) Check that the i/view icon is displayed in the "List of mapped Font Awesome icons" section.   Scenario 4. Always link course sections setting removed Login as admin. Go to "Site administration > Administration > Appearance > Navigation" Check the "Always link course sections" [linkcoursesections] setting is not displayed.
    • 3
    • HQ 2023 Sprint I4.2 Moppies

    Description

      From now on, both topics and weeks format will have a way to render single sections regardless of the "one section per page" setting.

      It means:

      1. A new page, course/section.php, will be created. It will have, at least, a sectionid param, to show only this section, not the full course. It is essential to note the section will be identified by the ID, not the section number. We are trying to eliminate the use of section numbers as section identification.
      2. With edit mode OFF, the section name will always be a link to the section page (also in the course index). Clicking the chevrons will be the only way to expand and collapse sections.
      3. With edit mode ON, the section name in the course content will be a inplace editable as before, but the section action menu will have the option to go to the section page. The course index will keep the link as point 2.
      4. The section page won't display the general section anymore

      Here are some screenshots of the prototype:

      A) Course page with edit mode OFF

       

      B) The section dropdown with section link in edit mode

      Attachments

        Issue Links

          Activity

            People

              sarjona Sara Arjona (@sarjona)
              tusefomal Ferran Recio
              Mikel Martín Corrales Mikel Martín Corrales
              Amaia Anabitarte Amaia Anabitarte
              Kim Jared Lucas Kim Jared Lucas
              Votes:
              0 Vote for this issue
              Watchers:
              14 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 - 1 week, 3 days, 6 hours, 40 minutes
                  1w 3d 6h 40m

                  Clockify

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