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

Block "Section links": Toggle Section number

    • MOODLE_401_STABLE, MOODLE_402_STABLE, MOODLE_403_STABLE, MOODLE_404_STABLE
    • MOODLE_500_STABLE
    • MDL-82555-main
    • Hide

      Covered by automated tests.

      1. As admin, in Site administration, remove "section_links" from your theme's "Unneeded blocks" setting.
      2. Create a new Course
      3. Create at least 1 section (Let the name as it is "New Section")
      4. Add the block "Section links" and select "Yes" for "Display section name" and save.
      5. Verify the link is "New Section" in the added Section links block and there are only the section titles in the Section links block.
      6. Edit the "Section links" blocks settings and select "No" for "Display section name" and save.
      7. Verify the link is "1" in the Section links block and there are only the numbers in the Section links block.
      Show
      Covered by automated tests. As admin, in Site administration, remove "section_links" from your theme's "Unneeded blocks" setting. Create a new Course Create at least 1 section (Let the name as it is "New Section") Add the block "Section links" and select "Yes" for "Display section name" and save. Verify the link is "New Section" in the added Section links block and there are only the section titles in the Section links block. Edit the "Section links" blocks settings and select "No" for "Display section name" and save. Verify the link is "1" in the Section links block and there are only the numbers in the Section links block.
    • Hide

      Code verified against automated checks.

      Checked MDL-82555 using repository: https://github.com/lucaboesch/moodle.git

      More information about this report

      Built on: Sat Mar 1 14:16:37 UTC 2025

      Show
      Code verified against automated checks. Checked MDL-82555 using repository: https://github.com/lucaboesch/moodle.git main (0 errors / 0 warnings) [branch: MDL-82555-main | CI Job ] More information about this report Built on: Sat Mar 1 14:16:37 UTC 2025
    • Show
      Launching automatic jobs for branch MDL-82555 -main https://ci.moodle.org/view/Testing/job/DEV.02%20-%20Developer-requested%20PHPUnit/18730/ PHPUnit (sqlsrv / complete) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/64164/ Behat (NonJS - boost and classic / complete) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/64165/ Behat (Firefox - boost / complete) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/64166/ Behat (Firefox - classic / complete) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/64167/ App tests (stable app version) / complete) Built on: Thu Mar 20 14:43:24 UTC 2025

      When using the block "Section Links" it should be possible to remove the section number and display only the section title.

      Currently the title can be toggled to show only numbers or both but in most cases we don't have numbers in the section titles so they are more confusing than helping in the section links block:

       

      To reproduce this do the following:

      1. As admin, in Site administration, remove "section_links" from your theme's "Unneeded blocks" setting.
      2. Create a new Course
      3. Create at least 1 section (Let the name as it is "New Section")
      4. Add the block "Section Links" and leave settings as is or tick "Yes" on "Display section name"
      5. The section Title is "New Section" while it says "1: New Section" in the added Section Link Block

      It is not possible to select / toggle "Display section number" as this setting doesn't exist yet

            lucaboesch Luca Bösch
            samuel.fischer Samuel Fischer
            Stefan Hanauska Stefan Hanauska
            Ferran Recio Ferran Recio
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:

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