Moodle

Make Front page setting 'courses per page' paginate the my course listing on the front page

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.9.7, 1.9.8, 1.9.9, 1.9.10
  • Fix Version/s: None
  • Component/s: Accessibility, Usability
  • Labels:
    None
  • Affected Branches:
    MOODLE_19_STABLE

Description

There can be users on a Moodle instance who are enrolled on a large number of courses. If the the front page is set to list a users courses then that list can be very long and cause the front page to take a long time to render for them.
In the Front page settings of the administrator panel there is a setting called 'courses per page' which, I believe, should change the number of courses displayed on the front page but does not. It would be useful if this setting could trigger pagination to occur on the front page which would allow the page to load faster for users assigned to a lot of courses. I have developed a patch that will allow this to work but requires changes to core Moodle code in course/lib.php and lib/datalib.php. The patch and screen shots of the working pagination in the latest weekly build of Moodle 1.9.7 is attached. Note that the patch code takes into account local and remote courses and places the remote courses on the pages after the local courses.

  1. frontPagePaginate19.patch
    30/Sep/11 1:45 AM
    13 kB
    Steve Clay
  2. patch.txt
    22/Jan/10 8:27 PM
    12 kB
    John Ennew
  1. frontpage_pagination_remotecourses.png
    181 kB
    22/Jan/10 8:27 PM
  2. frontpage_pagination.png
    211 kB
    22/Jan/10 8:27 PM

Activity

Hide
Stephen added a comment -

We have a user role for helpdesk staff that isn't admin, but can see all modules. Default behaviour is to list all modules on the same page, and this gets crazy slow! Paginating would be a perfect solution.

Show
Stephen added a comment - We have a user role for helpdesk staff that isn't admin, but can see all modules. Default behaviour is to list all modules on the same page, and this gets crazy slow! Paginating would be a perfect solution.
Hide
David Mudrak added a comment -

+1 for the pagination. For admins (and other roles having all courses available) the front page can even become blank if the number of course is higher than 200.

Show
David Mudrak added a comment - +1 for the pagination. For admins (and other roles having all courses available) the front page can even become blank if the number of course is higher than 200.
Hide
Steve Clay added a comment -

git patch from 050504c371db27020f15e96012987b9e1085b4b2 (converted from John Ennew's CVS patch)

Show
Steve Clay added a comment - git patch from 050504c371db27020f15e96012987b9e1085b4b2 (converted from John Ennew's CVS patch)
Hide
Steve Clay added a comment -

Sad to say this patch does not take into account category ordering and probably other factors, so while the correct courses are visible and separated into pages, with our settings the overall order of the entire set was completely wonky. I.e. if we simply concatenated the individual pages, we'd get a wildly different order than before we applied the patch.

Show
Steve Clay added a comment - Sad to say this patch does not take into account category ordering and probably other factors, so while the correct courses are visible and separated into pages, with our settings the overall order of the entire set was completely wonky. I.e. if we simply concatenated the individual pages, we'd get a wildly different order than before we applied the patch.

People

Vote (5)
Watch (7)

Dates

  • Created:
    Updated: